-
-
Notifications
You must be signed in to change notification settings - Fork 947
Modulo binary operation over array operands not reported #10440
Copy link
Copy link
Closed
Labels
Description
Bug report
Modulo operation over array operands is invalid, and throws TypeError since PHP 8.0
https://3v4l.org/Oj0IO
PHPStan currently does not catch this and reports no error.
Code snippet that reproduces the problem
Expected output
Binary operation "%" between array{} and array{''} results in an error. error on line 6.
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable