Skip to content

Commit 278d119

Browse files
authored
Update Byte.php
1 parent 7ddc96f commit 278d119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Byte.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ public static function humanize(int|float $bytes, int $precision = 2, string $de
273273

274274
/**
275275
* @param string $string
276-
* @return int
276+
* @return int|float
277277
* @throws \InvalidArgumentException
278278
*/
279-
public static function parse(self|string $string): self|int|float
279+
public static function parse(self|string $string): int|float
280280
{
281281
if (is_numeric($string)) return $string + 0;
282282
if ($string instanceof self) return $string->value;

0 commit comments

Comments
 (0)