phpstan-symfony icon indicating copy to clipboard operation
phpstan-symfony copied to clipboard

Symfony extension for PHPStan

Results 62 phpstan-symfony issues
Sort by recently updated
recently updated
newest added

@ondrejmirtes I've added support for `ServiceProviderInterface` and checked it against our codebase - after my changes and implementing this interface in our locators (mentioned [here](https://github.com/phpstan/phpstan-symfony/pull/151#issuecomment-1031578839)) I don't have errors, so...

Hello, We have the following error messages while using a command argument/option default value as a constant: ``` ------ ------------------------------------------------------------------------------------------------------------------------------ 42 Parameter #4 $default of method Symfony\Component\Console\Command\Command::addArgument() expects string|null, mixed...

I just want to make you aware of https://github.com/symfony/symfony/issues/46546 In short: The workaround (`scanDirectories`) I added in https://github.com/phpstan/phpstan-symfony/pull/190 isn't working anymore. So the question is: If the Symfony guys don't...

When using the new Symfony 6.1 `AbstractBundle` introduced in https://github.com/symfony/symfony/pull/43701 I'm getting the following error: ```php final class GraphQLBundle extends AbstractBundle { public function configure(DefinitionConfigurator $definition) : void { $definition...

I have the following configured: ```yaml parameters: symfony: constant_hassers: false ``` Since PHPStan 1.6.3 I'm now getting: ``` ------ ------------------------------------------------------------------------------------------------- Line src/Sulu/Bundle/HttpCacheBundle/Tests/Unit/DependencyInjection/SuluHttpCacheExtensionTest.php ------ ------------------------------------------------------------------------------------------------- 100 Call to method PHPUnit\Framework\Assert::assertTrue() with...

right now I'm having to check the type on each call (mixed return), which is a lot. Not sure if this is possible, but thought I'd ask.

When you pass a variable getOption($optName) and $optName is a set of multiple string literals, it should still be possible to resolve the type(s). It seems fairly easy to tweak...

Provides the option to define multiple container paths. For most of us, it will resolve the issue of missing container file in CI, because if the container is not found...

A common error we have is "you forgot to commit the .html.twig file" or the twig file was renamed and not all occurences was replaced. If phpstan could detect the...