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
I tried to use the FrameworkConfig class in a Symfony PHP configuration, but PHPStan complains about it. I am happy to provide a fix, once I know how that should look like.
How to reproduce
When I have a configuration file like the following:
Symfony version(s) affected
7.2.3
Description
I tried to use the
FrameworkConfig
class in a Symfony PHP configuration, but PHPStan complains about it. I am happy to provide a fix, once I know how that should look like.How to reproduce
When I have a configuration file like the following:
PHPStan complains with an error like the following:
A similar thing is happening with
$framework->session()
. I am not sure why it is only happening for some of the methods though.Possible Solution
Fix the return type of the generated
FrameworkConfig
file to work properly with PHPStan.Additional Context
No response
The text was updated successfully, but these errors were encountered: