Category: type-hinting

Correct type hint error thrown by PHPStan on UserInterface in Symfony project

I’ve recently started using PHPStan (version 0.12.19) on a Symfony 3.4 project but I’m getting an error which seems like it should have been simple to resolve but I’m struggling to figure out. Currently running at level 7. Here’s the…