Skip to content

Commit

Permalink
Update Byte.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelamkoff authored Mar 26, 2023
1 parent 7ddc96f commit 278d119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Byte.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ public static function humanize(int|float $bytes, int $precision = 2, string $de

/**
* @param string $string
* @return int
* @return int|float
* @throws \InvalidArgumentException
*/
public static function parse(self|string $string): self|int|float
public static function parse(self|string $string): int|float
{
if (is_numeric($string)) return $string + 0;
if ($string instanceof self) return $string->value;
Expand Down

0 comments on commit 278d119

Please sign in to comment.