File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1- # An extension for PHPStan to inform it of zend-mvc plugins
2- Tells PHPStan about the Params class, specifically it's use in a controller as
3- $this->params();
1+ # PHPStan extension for Zend Framework MVC Controller Plugins
2+ Adds support to PHPStan to correctly handle controller plugins that are called
3+ using magic ` __call() ` in ` \Zend\Mvc\Controller\AbstractController ` and
4+ children.
45
5- # Installation
6- - Clone this repo and put it under your mdoule/Application/src/
7- - Add the following to phpstan.neo in your top-level app directory
6+ ## Installation
7+ - Add ` michaelgooden/phpstan-zend-mvc ` as a ` require-dev ` Composer dependency
8+ - Add the following to phpstan.neon in your top-level app directory
89```
910services:
1011 -
11- class: Application\ PHPStan\PluginClassReflectionExtension
12+ class: PHPStan\Reflection\ZendMvc \PluginClassReflectionExtension
1213 tags:
1314 - phpstan.broker.methodsClassReflectionExtension
1415```
15-
16- # Open questions:
17-
18- - My names are likely atrocious - need feedback.
19- - Is module\Application\PHPStan the best place for something like this?
20-
21-
16+ - Run PHPStan with the config file switch ` phpstan -c phpstan.neon `
You can’t perform that action at this time.
0 commit comments