-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpstan.neon
29 lines (28 loc) · 1.2 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
26
27
28
includes:
- .Build/vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false
bootstrapFiles:
- %currentWorkingDirectory%/phpstan.bootstrap.php
paths:
# for now only checking theme
- Classes/
- ext_localconf.php
- ext_emconf.php
ignoreErrors:
- message: '#Variable \$_EXTKEY might not be defined#'
path: '*/ext_emconf.php'
- message: '#Parameter \#3 \$cache of class TYPO3\\CMS\\Core\\Http\\MiddlewareStackResolver constructor expects TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend, TYPO3\\CMS\\Core\\Cache\\Frontend\\FrontendInterface given.#'
path: '*/Classes/Error/PageErrorHandler/LocalPageErrorHandler.php'
- message: '#Cannot call method warning\(\) on Psr\\Log\\LoggerInterface\|null.#'
path: '*/Classes/*'
excludes_analyse:
- Tests/Acceptance/_support/_generated
disallowedStaticCalls:
- method: 'TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump()'
message: 'remove before committing or use proper logging.'
disallowedFunctionCalls:
- function: 'debug()'
message: 'remove before committing or use proper logging.'