**Symfony version(s) affected**: 5.3.6 **Description** With this being my `config/packages/mailer.php`: ```php <?php declare(strict_types=1); use Symfony\Config\FrameworkConfig; return static function (FrameworkConfig $framework): void { $framework->mailer() ->transport(...) ; }; ``` ... phpstan is reporting: > Parameter $framework of anonymous function has invalid typehint type Symfony\Config\FrameworkConfig. **Possible Solution** There's a similar issue over at phpstan, with a proposed solution: https://github.com/phpstan/phpstan/issues/5189#issuecomment-863821592