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

Symfony extension for PHPStan

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

### Bug report I'm passing a `non-negative-int` in my method, which is correctly detected by PHPStan. However, it looses it's narrowed type on the way passing through `CacheInterface`. I'm not...

I have a Kernel that extends `Symfony\Component\HttpKernel\Kernel` and uses a `Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait`. The `configureContainer()` function from the trait is overridden in my Kernel class and is being used by Symfony so...

Hi ! I noticed that the interface `FormFactoryInterface` define 6 methods, but the current stub only includes two of them. For example, in this snippet: ``` class MyService { public...

Sometimes (for advanced cases), it is useful to execute validation of other constraints in the implementation of a ConstraintValidator. The supported way of doing that in `symfony/validator` is to use...