psalm-plugin-symfony icon indicating copy to clipboard operation
psalm-plugin-symfony copied to clipboard

Symfony's FrameworkConfig methods not found

Open ThomasLandauer opened this issue 3 years ago • 1 comments

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).

ThomasLandauer avatar Jun 02 '22 18:06 ThomasLandauer

@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

seferov avatar Jun 16 '22 06:06 seferov

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

ThomasLandauer avatar Dec 10 '22 19:12 ThomasLandauer

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

arderyp avatar Feb 16 '24 21:02 arderyp