Created
February 9, 2021 18:56
-
-
Save devNoiseConsulting/f900444ff71051b02aeda520d5ed5eec to your computer and use it in GitHub Desktop.
phpstan.neon for Larastan checking a Laravel project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
includes: | |
- ./vendor/nunomaduro/larastan/extension.neon | |
- phpstan-baseline.neon | |
parameters: | |
paths: | |
- app | |
# The level 8 is the highest level | |
level: 7 | |
# I probably shouldn't ingore these errors, but I wanted these hidden when I focused on other errors. | |
ignoreErrors: | |
- '#Property [A-Za-z0-9\\]+::\$[A-Za-z0-9_]+ has no typehint specified#' | |
- '#Method [A-Za-z0-9\\]+::[A-Za-z0-9_]+\(\) has no return typehint specified#' | |
- '#Method [A-Za-z0-9\\]+::[A-Za-z0-9_]+\(\) has parameter \$[A-Za-z0-9_]+ with no typehint specified\.#' | |
- '#Method [A-Za-z0-9\\]+::[A-Za-z0-9_]+\(\) should return Illuminate\\Http\\Response but returns Illuminate\\.*\.#' | |
checkMissingIterableValueType: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment