We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80871ba + 1fa2ab4 commit 8478673Copy full SHA for 8478673
source/PhysicalQuantity/Volume.php
@@ -148,6 +148,15 @@ protected static function initialize()
148
$newUnit->addAlias('gallons');
149
$newUnit->addAlias('us gal');
150
static::addUnit($newUnit);
151
+
152
+ // Imperial Gallon
153
+ $newUnit = UnitOfMeasure::linearUnitFactory('imp gal', 4.54609e-3);
154
+ $newUnit->addAlias('imperial gallon');
155
+ $newUnit->addAlias('imperial gal');
156
+ $newUnit->addAlias('imp gallon');
157
+ $newUnit->addAlias('impg');
158
+ static::addUnit($newUnit);
159
160
// Quart
161
$newUnit = UnitOfMeasure::linearUnitFactory('qt', 9.4635295e-4);
162
$newUnit->addAlias('quart');
0 commit comments