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
When extending an array with: $arr['index'] = $value; and then using array_key_exists() to check for other indexes is flagged as false as PHPStan only thinks the new 'index' exists.
@@ @@-66: Call to function array_key_exists() with 'ssi'|'utc' and array('bew' => int) will always evaluate to false.+ 8: Function GenerateData() should return array<string>|bool but return statement is missing.+33: Function GetASCConfig() should return array but return statement is missing.
Full report
Line
Error
8
`Function GenerateData() should return array
33
Function GetASCConfig() should return array but return statement is missing.
@@ @@-66: Call to function array_key_exists() with 'ssi'|'utc' and array('bew' => int) will always evaluate to false.+66: Call to function array_key_exists() with 'ssi'|'utc' and array{bew: int} will always evaluate to false.
Bug report
When extending an array with: $arr['index'] = $value; and then using array_key_exists() to check for other indexes is flagged as false as PHPStan only thinks the new 'index' exists.
Code snippet that reproduces the problem
https://phpstan.org/r/957f0c1a-0167-411e-9bdb-b548a19dd8b6
Expected output
There shouldn't be any error.
The text was updated successfully, but these errors were encountered: