Closed belgattitude closed 7 years ago
Side note for people using phpstan.
To prevent phpstan to complain, simply create the phpstan.neon
file and add
parameters:
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# For zend-expressive tests, the routes.php and pipeline.php
# will break with phpstan.
- '#Undefined variable: \$app#'
and refer it with
$ vendor/bin/phpstan analyse -l 5 -c phpstan.neon src tests
Merged with #155 into develop.
Just a tiny addition in config files that helps code completion.
Can be useful to typehint $app in routes.php and pipeline.php like this:
I'll make a P/R soon.