File tree 1 file changed +9
-14
lines changed
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.
4
5
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
8
9
```
9
10
services:
10
11
-
11
- class: Application\ PHPStan\PluginClassReflectionExtension
12
+ class: PHPStan\Reflection\ZendMvc \PluginClassReflectionExtension
12
13
tags:
13
14
- phpstan.broker.methodsClassReflectionExtension
14
15
```
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