diff --git a/src/Unit/Measure.php b/src/Unit/Measure.php index 35e1097..bb11cc1 100644 --- a/src/Unit/Measure.php +++ b/src/Unit/Measure.php @@ -78,10 +78,14 @@ public static function extractValue(string $expression): ?string return Str::of($expression)->match('/[\d.+]+/')->value(); } - /* @phpstan-ignore-next-line */ + return $results; } + /** + * @param string $expression + * @return array{float, Units} + */ public static function getValueAndUnit(string $expression): array { $value = static::extractValue($expression); @@ -107,6 +111,8 @@ public function unitClass(): string } /** + * @param string $name + * @param array $arguments * @return Measure */ public function __call(string $name, array $arguments)