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
PHPStan assumes that array keys of superglobals such as $_GET, $_POST, ... must be string. But due to the fact that "int strings" are automatically cast to int when used as array keys, they can be int|string.
Bug report
PHPStan assumes that array keys of superglobals such as
$_GET
,$_POST
, ... must be string. But due to the fact that "int strings" are automatically cast to int when used as array keys, they can beint|string
.It seems that the relevant line is here.
Code snippet that reproduces the problem
https://phpstan.org/r/69510a71-e73a-4664-ac15-9e15f83a4893
Expected output
No issue.
The text was updated successfully, but these errors were encountered: