psalm / psalm-plugin-symfony

Psalm Plugin for Symfony
MIT License
228 stars 53 forks source link

Symfony's FrameworkConfig methods not found #256

Closed ThomasLandauer closed 1 year ago

ThomasLandauer commented 2 years ago

Symfony changed its configuration recently - see https://github.com/symfony/symfony/issues/46546

psalm is now reporting:

PossiblyUndefinedMethod - config/packages/framework.php - Method Symfony\Config\FrameworkConfig::scopedClient does not exist

So the workaround (<extraFiles>) I added in https://github.com/psalm/psalm-plugin-symfony/pull/203 isn't working anymore.

Is there a change that this can get fixed in psalm? If no, I'd delete that workaround from the docs again, and recommend to exclude config/ from analysis (as recommended in the linked Symfony issue).

seferov commented 2 years ago

@ThomasLandauer it seems there is a second thought on it https://github.com/symfony/symfony/issues/46546#issuecomment-1146637184 https://github.com/symfony/symfony/pull/46581 might fix the issue

ThomasLandauer commented 1 year ago

Indeed, this works now (Symfony 6.2), so I'm closing this.

arderyp commented 9 months ago

I'm confused. It works in Symfony 6.2, but what about those of us on 5.4?