Adds support to PHPStan to correctly handle controller plugins that are called
using magic __call() in \Zend\Mvc\Controller\AbstractController and
children.
- Add
michaelgooden/phpstan-zend-mvcas arequire-devComposer dependency - Add the following to phpstan.neon in your top-level app directory
services:
-
class: PHPStan\Reflection\ZendMvc\PluginClassReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
- Run PHPStan with the config file switch
phpstan -c phpstan.neon