diff options
Diffstat (limited to 'src/BitOps/BinaryConversion.php')
| -rw-r--r-- | src/BitOps/BinaryConversion.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/BitOps/BinaryConversion.php b/src/BitOps/BinaryConversion.php index 34d4ca6..e8e7bf9 100644 --- a/src/BitOps/BinaryConversion.php +++ b/src/BitOps/BinaryConversion.php @@ -321,9 +321,6 @@ final readonly class BinaryConversion */ private static function byteSwapIfNeeded(string $s): string { - // note: currently phpstan cannot infer that strrev(non-empty-string) returns non-empty-string. - $ret = self::isLittleEndian() ? $s : strrev($s); - assert($ret !== ''); - return $ret; + return self::isLittleEndian() ? $s : strrev($s); } } |
