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

### Summary of a problem or a feature request It appears that PHPStan doesn't analyse correctly the inheritance in Symfony controllers' `getSubscribedServices` method in subclasses of the abstract controller. ###...

# Bug report Analyzing nested services which have `get` methods produces weird side effect on other files. It seems to break something container/autoloader related. It then causes classes to not...

Hi, I don't know if it is the correct repository for this issue. I try to use phpstan in tests (phpunit) folder but I have this error : ![Capture d’écran...

`Symfony\Component\DependencyInjection\ContainerInterface::get()` can return null when using `ContainerInterface::NULL_ON_INVALID_REFERENCE` ```php $stack = $container->get('request_stack', ContainerInterface::NULL_ON_INVALID_REFERENCE); if (null === $stack) { return null; } ``` > Strict comparison using === between null and Symfony\Component\HttpFoundation\RequestStack...

Hello all, I get a "Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton()." error when working with Symfony Forms using the following code (within a Symfony Controller class): ` $form = $this->createForm(...);...

help wanted

The collector for a test client in functional tests isn't using the argument to map to the actual return type, leading to false positives. ```php $client = static::createClient(); $client->enableProfiler(); $client->request('POST',...

help wanted

| Designation | Value | | ---------------- | ------- | | php | 7.3 | | symfony/framework | 3.4 | | phpstan | 0.11.8 | | phpstan-symfony | 0.11.6 |...

bug

Symfony supports PHP format for configuration (it's even default one now), so it would be great if this plugin could help with verifying DI configs. Assume we have: ```php class...

Currently there is no way to override dynamic service return types on the container that are specified in `ServiceDynamicReturnTypeExtension`. This is useful to provide more specific information e.g. if the...

I have in my `bootstrapFiles` a file which generates the containerXml file. It looks like the containerXml will be parsed before the `bootstrapFiles` are executed and so the phpstan command...