-
I am using `phpVersion="7.1"` so that project's own code is limited to PHP 7.1 support. However, I'm running under PHP 8.0 and it's OK for dependencies to use PHP 7.4 code. But, this triggers ParseErr…
-
When enforcing type for `getCode()` with a PHPDoc and extending `RuntimeException` Psalm will raise
https://psalm.dev/r/2257ea8535
This is a false positive IMO since `getCode` indeed has a retur…
-
Any idea on how to allow IDE (PHPStorm?) to autocomplete the 2nd arg for options array, the keys?
```php
$this->hasMany('ADmad/SocialAuth.SocialProfiles', [
'foreignKey' => 'use…
-
If an initially `false` bool variable is toggled inside loop, psalm incorrectly assumes it is `false` after the loop
https://psalm.dev/r/08aae50c78
If a loop is a bit more complex, it can also a…
-
Psalm 4.24.0@06dd975cb55d36af80f242561738f16c5f58264f
and `strictBinaryOperands="true"` (thus can't be reproduced on psalm.dev)
https://psalm.dev/r/2b1b3686d6
On the 4th line `RedundantIdentity…
-
It's really nullable, while psalm says it's not.
https://psalm.dev/r/9a23dd53a0
-
Just using the plugin-bases approach (without setting `fileExtensions` in XML) does not work anymore, see https://psalm.dev/docs/running_psalm/checking_non_php_files/ as use-case example.
This feat…
-
Not sure this issue has a wider impact, but this is how I found it.
Consider this snippet:
https://psalm.dev/r/6bc7fcec49
The issues reported for `AnotherClass` are false positives: it is imp…
-
psalm does not take into account "match" condition.
https://psalm.dev/r/5c4581018e
-
Example: https://psalm.dev/r/bc65d88d33
Psalm incorrectly reports that the last `empty()` check is never falsy, despite the fact that it may be empty.
Compare that to an example where `unset()` is…