-
-
Notifications
You must be signed in to change notification settings - Fork 452
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
52 lines (48 loc) · 1.46 KB
/
phpstan.neon.dist
File metadata and controls
52 lines (48 loc) · 1.46 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
parameters:
level: 8
bootstrapFiles:
- tools/.phpstan/vendor/autoload.php
paths:
- src/
- tests/
ignoreErrors:
-
message: '#Parameter .+ expects .+, .+ given#'
path: tests
-
message: '#Method.+jsonSerialize.+no value type specified in iterable type array.#'
path: src
-
# Needed for backward compatibility
message: '#VersionNumber::fromValue\(\)#'
identifier: missingType.parameter
path: src/RemoteConfig/VersionNumber.php
-
# Needed since introducing phpstan/strict-rules, will revisit for next major release
message: '#Dynamic call to static method PHPUnit#'
identifier: staticMethod.dynamicCall
path: tests
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
exceptions:
checkedExceptionRegexes:
- '#^Kreait\\Firebase\\#'
check:
# missingCheckedExceptionInThrows: true
# tooWideThrowType: true
checkBenevolentUnionTypes: true
# checkMissingCallableSignature: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
reportAlwaysTrueInLastCondition: true
reportPossiblyNonexistentConstantArrayOffset: true
# reportPossiblyNonexistentGeneralArrayOffset: true
reportAnyTypeWideningInVarTag: true
type_perfect:
no_mixed_property: true
no_mixed_caller: true
null_over_false: true
narrow_param: false
narrow_return: true
includes:
- vendor/cuyz/valinor/qa/PHPStan/valinor-phpstan-configuration.php
- tools/.phpstan/vendor/phpstan/phpstan/conf/bleedingEdge.neon