Skip to content

Commit

Permalink
fixed types in docs for phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
sfolador committed Nov 23, 2024
1 parent fa1aca5 commit e25534a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Unit/Measure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -107,6 +111,8 @@ public function unitClass(): string
}

/**
* @param string $name
* @param array<mixed,mixed> $arguments
* @return Measure
*/
public function __call(string $name, array $arguments)
Expand Down

0 comments on commit e25534a

Please sign in to comment.