Skip to content

Commit 593f730

Browse files
committed
Update README.md.
Signed-off-by: Michael Gooden <[email protected]>
1 parent 3de806f commit 593f730

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

README.md

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
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
```
910
services:
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`

0 commit comments

Comments
 (0)