Binary operations on non-empty-string
and string
gives different results
#6624
Labels
Milestone
non-empty-string
and string
gives different results
#6624
Bug report
Hi,
Binary operations between
string
andint
, gives errors as expected. Except dividing!But the same operations between
non-empty-string
andint
does not produce any error.In runtime these all error.
Code snippet that reproduces the problem
https://phpstan.org/r/980008ff-df01-4485-aab0-1fd7b8a73f55
Expected output
Error is expected for the operations on
$foo
Did PHPStan help you today? Did it make you happy in any way?
Yes!
The text was updated successfully, but these errors were encountered: