aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BitOps
diff options
context:
space:
mode:
Diffstat (limited to 'src/BitOps')
-rw-r--r--src/BitOps/BinaryConversion.php5
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);
}
}