-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
34 lines (30 loc) · 1.03 KB
/
phpstan.neon.dist
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
29
30
31
32
33
34
parameters:
level: 6
paths:
- ./
excludePaths:
- cache/
- build/
- vendor/
- tests/
- js/
- public/
- demos/local/
# TODO review once we drop PHP 7.x support
treatPhpDocTypesAsCertain: false
# some extra rules
checkAlwaysTrueCheckTypeFunctionCall: true
checkAlwaysTrueInstanceof: true
checkAlwaysTrueStrictComparison: true
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
# TODO checkMissingClosureNativeReturnTypehintRule: true
reportMaybesInMethodSignatures: true
reportStaticMethodSignatures: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
ignoreErrors:
- '#Call to an undefined method [a-zA-Z0-9\\_]+::ajax\(\)#'
- '#Call to an undefined method [a-zA-Z0-9\\_]+::jsOpenWindow\(\)#'
- '#Call to an undefined method [a-zA-Z0-9\\_]+::performMethod\(\)#'
- '#Call to an undefined method [a-zA-Z0-9\\_]+::format\(\)#'
- identifier: missingType.iterableValue