Properties became case sensitive in propertyMap (because they are in PHP) but we forgot to fix the casing for existing properties. I probably missed a few, but this should solve the majority of them
fix https://github.com/vimeo/psalm/issues/8819
Not sure if it was the intended way to fix that but it kinda mimics the switch break handling and it works :)
This is a draft not meant to be merged for now
This reverts the CI to run on Composer 2.1. For a mysterious reason, Composer 2.2 makes CI hangs.
https://blog.packagist.com/composer-2-2/ warned that:
> Please beware, the prompt…
Looks like CI has switched on composer 2.2 and it now warns that a plugin is not allowed.
I'm not sure what the source of the plugin is but I guess there is no reason not to allow it, given it was executed before
This should fix #6389
This was due to the analyzing the function call when no insideUse was flagged. Psalm emits an Unused erro…
This PR started when I noticed a weird handling of inside_conditional flag in switch. After looking for more I found a few.
After that, I noticed that we don't always unflag those before leaving an analyzer, mainly when the other anal…
This PR will fix https://github.com/vimeo/psalm/issues/7151 by only emitting PossiblyNullArrayAccess if there was no successful destructuring (as this is not a PHP issue nor a user error)
Also, this adds null to the generated type i…
#7189 was successful. This PR will fix other cases of getAttributes that behaves the same way
The fix in #7180 for #7178 was not correct. The test I made was passing because array<ReflectionAttribute<empty>> is an acceptable value for array<ReflectionAttribute<object>>. This PR should fix the issue and fix the test
This fixes a new error in CI that seem due to https://github.com/php/php-src/pull/7196 where the isStatic method was moved from ReflectionMethod to ReflectionFunctionAbstract
This aims to fix https://github.com/vimeo/psalm/issues/7109
This will fix https://github.com/vimeo/psalm/issues/7098
It also fix an issue where adding a positive-int or integer-range to an existing union with literals would wipe every literal, even if they were not included in the said type
The goal is to fix https://github.com/vimeo/psalm/issues/7090
But seeing the change I had to do, it'll probably break something elsewhere, Let's run the CI!
This will fix https://github.com/vimeo/psalm/issues/7081 (where this crashes: https://psalm.dev/r/a36ee9d0d8)
It seems that using getAppearingMethodId doesn't return anything when the method only exists in a trait, so I handled this…
This is a follow-up for #6964 since the changes made there didn't have the desired outcome.
This fix https://github.com/vimeo/psalm/issues/6933
The message is a little weird because it says Cannot access value on variable ARR when it's a constant, but it's not a big deal.
Didn't add test because this is just a wording i…
This documents my findings when looking at https://github.com/vimeo/psalm/issues/7038