Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
92 lines (86 loc) · 3.07 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
92 lines (86 loc) · 3.07 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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
# The following errors depend on which Guzzle, Promises and PSR-7 majors are installed
-
message: '#^Call to function method_exists\(\) with GuzzleHttp\\Exception\\RequestException and ''getResponse'' will always evaluate to true\.$#'
path: src/Exception
reportUnmatched: false
-
message: '#^Parameter \#1 \$config of class GuzzleHttp\\Client constructor expects array#'
path: src/Factory.php
reportUnmatched: false
-
message: '#^Parameter \#3 \$config of class GuzzleHttp\\Pool constructor expects array#'
path: src/Messaging/ApiClient.php
reportUnmatched: false
-
message: '#^Casting to string something that''s already string\.$#'
paths:
- src/Messaging.php
- src/Messaging/AppInstanceApiClient.php
reportUnmatched: false
-
message: '#^Offset ''value'' might not exist on array#'
path: src/Messaging.php
reportUnmatched: false
-
message: '#^Method Kreait\\Firebase\\Messaging::unsubscribeFromAllTopics\(\) should return array<string, array<string, string>> but returns array<string, list<string>\|string>\.$#'
path: src/Messaging.php
reportUnmatched: false
-
message: '#^Provide more specific return type "GuzzleHttp\\Promise\\PromiseInterface" over abstract one$#'
paths:
- src/Messaging/ApiClient.php
- src/Messaging/AppInstanceApiClient.php
reportUnmatched: false
# Only reported with Guzzle 7; Guzzle 8's ResponseException extends RequestException
-
message: '#should return GuzzleHttp\\Exception\\RequestException but returns GuzzleHttp\\Exception\\ResponseException#'
path: tests/CreatesRequestExceptions.php
reportUnmatched: false
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