You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If both operands for the &, | and ^ operators are strings, then the operation will be performed on the ASCII values of the characters that make up the strings and the result will be a string. In all other cases, both operands will be converted to integers and the result will be an integer.
However, when this is done, PHPStan on PHP 7.x now thinks the string has been converted into an integer.
The output should not have errors here, but PHPStan thinks that the string is now an int, that cannot be passed to base64_encode: Parameter #1 $str of function base64_encode expects string, int given.
The text was updated successfully, but these errors were encountered:
PHP allows strings to be xor'd. From: https://www.php.net/manual/en/language.operators.bitwise.php
However, when this is done, PHPStan on PHP 7.x now thinks the string has been converted into an integer.
https://phpstan.org/r/12e63cdd-d516-4db2-a314-51da4f5c3101
The output should not have errors here, but PHPStan thinks that the string is now an int, that cannot be passed to base64_encode: Parameter #1 $str of function base64_encode expects string, int given.
The text was updated successfully, but these errors were encountered: