-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
25 lines (25 loc) · 1.12 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
includes:
- rules.neon
parameters:
level: max
paths:
- app
- src
- tests
excludePaths:
# Intentionally contains errors
- tests/PHPStan/data
# Mixins are not recognized with the latest dependencies, TODO try removing this again
- tests/Collection/CollectionMixinTest.php
# Install https://plugins.jetbrains.com/plugin/7677-awesome-console to make those links clickable
editorUrl: '%%relFile%%:%%line%%'
editorUrlTitle: '%%relFile%%:%%line%%'
reportUnmatchedIgnoredErrors: false # As long as we support multiple Laravel versions at once, there will be some dead spots
# Unnecessary because we do no configuration caching
noEnvCallsOutsideOfConfig: false
ignoreErrors:
# PHPStan does not believe interfaces can define magic properties
- '#Access to an undefined property .*MLL\\LaravelUtils\\ModelStates\\HasStateManagerInterface::\$stateManager\.#'
- '#Access to an undefined property .*MLL\\LaravelUtils\\ModelStates\\HasStateManagerInterface::\$state\.#'
# See https://github.com/phpstan/phpstan-strict-rules/issues/140
- '#Dynamic call to static method Illuminate\\Support\\Collection.+::interpose\(\)\.#'