aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BitOps/BinaryConversion.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-10 01:21:55 +0900
committernsfisis <nsfisis@gmail.com>2025-07-10 01:21:55 +0900
commit43806ead64146d285e846d8809c976b60e8abd87 (patch)
treef43319fd15dbdfb6daea59f093144ed553fab48c /src/BitOps/BinaryConversion.php
parent20d59037a9e860ec5c114154e47c91fa48a01771 (diff)
downloadphp-waddiwasi-43806ead64146d285e846d8809c976b60e8abd87.tar.gz
php-waddiwasi-43806ead64146d285e846d8809c976b60e8abd87.tar.zst
php-waddiwasi-43806ead64146d285e846d8809c976b60e8abd87.zip
feat: update dependencies
Diffstat (limited to 'src/BitOps/BinaryConversion.php')
-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);
}
}