|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
4 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:cache\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\CacheRecorder\\\\CacheRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 4 | + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' |
| 5 | + identifier: function.alreadyNarrowedType |
| 6 | + count: 1 |
| 7 | + path: src/AttributesProviders/PhpRequestAttributesProvider.php |
| 8 | + |
| 9 | + - |
| 10 | + message: '#^Call to function method_exists\(\) with Symfony\\Component\\HttpFoundation\\Session\\SessionInterface and ''all'' will always evaluate to true\.$#' |
| 11 | + identifier: function.alreadyNarrowedType |
| 12 | + count: 1 |
| 13 | + path: src/AttributesProviders/SymfonyRequestAttributesProvider.php |
| 14 | + |
| 15 | + - |
| 16 | + message: '#^Call to function array_key_exists\(\) with ''body'' and array\{time_unix_nano\: int, observed_time_unix_nano\: int, trace_id\?\: string, span_id\?\: string, flags\?\: string, severity_text\?\: string, severity_number\?\: int, body\: mixed, \.\.\.\} will always evaluate to true\.$#' |
| 17 | + identifier: function.alreadyNarrowedType |
| 18 | + count: 1 |
| 19 | + path: src/Exporters/OpenTelemetryJsonExporter.php |
| 20 | + |
| 21 | + - |
| 22 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:cache\(\) should return Spatie\\FlareClient\\Recorders\\CacheRecorder\\CacheRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 23 | + identifier: return.type |
5 | 24 | count: 1 |
6 | 25 | path: src/Flare.php |
7 | 26 |
|
8 | 27 | - |
9 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:command\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\CommandRecorder\\\\CommandRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 28 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:command\(\) should return Spatie\\FlareClient\\Recorders\\CommandRecorder\\CommandRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 29 | + identifier: return.type |
10 | 30 | count: 1 |
11 | 31 | path: src/Flare.php |
12 | 32 |
|
13 | 33 | - |
14 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:externalHttp\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\ExternalHttpRecorder\\\\ExternalHttpRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 34 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:externalHttp\(\) should return Spatie\\FlareClient\\Recorders\\ExternalHttpRecorder\\ExternalHttpRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 35 | + identifier: return.type |
15 | 36 | count: 1 |
16 | 37 | path: src/Flare.php |
17 | 38 |
|
18 | 39 | - |
19 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:filesystem\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\FilesystemRecorder\\\\FilesystemRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 40 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:filesystem\(\) should return Spatie\\FlareClient\\Recorders\\FilesystemRecorder\\FilesystemRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 41 | + identifier: return.type |
20 | 42 | count: 1 |
21 | 43 | path: src/Flare.php |
22 | 44 |
|
23 | 45 | - |
24 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:glow\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\GlowRecorder\\\\GlowRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 46 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:glow\(\) should return Spatie\\FlareClient\\Recorders\\GlowRecorder\\GlowRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 47 | + identifier: return.type |
25 | 48 | count: 1 |
26 | 49 | path: src/Flare.php |
27 | 50 |
|
28 | 51 | - |
29 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:job\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\JobRecorder\\\\JobRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 52 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:job\(\) should return Spatie\\FlareClient\\Recorders\\JobRecorder\\JobRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 53 | + identifier: return.type |
30 | 54 | count: 1 |
31 | 55 | path: src/Flare.php |
32 | 56 |
|
33 | 57 | - |
34 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:query\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\QueryRecorder\\\\QueryRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 58 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:query\(\) should return Spatie\\FlareClient\\Recorders\\QueryRecorder\\QueryRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 59 | + identifier: return.type |
35 | 60 | count: 1 |
36 | 61 | path: src/Flare.php |
37 | 62 |
|
38 | 63 | - |
39 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:queue\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\QueueRecorder\\\\QueueRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 64 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:queue\(\) should return Spatie\\FlareClient\\Recorders\\QueueRecorder\\QueueRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 65 | + identifier: return.type |
40 | 66 | count: 1 |
41 | 67 | path: src/Flare.php |
42 | 68 |
|
43 | 69 | - |
44 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:redisCommand\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\RedisCommandRecorder\\\\RedisCommandRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 70 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:redisCommand\(\) should return Spatie\\FlareClient\\Recorders\\RedisCommandRecorder\\RedisCommandRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 71 | + identifier: return.type |
45 | 72 | count: 1 |
46 | 73 | path: src/Flare.php |
47 | 74 |
|
48 | 75 | - |
49 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:request\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\RequestRecorder\\\\RequestRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 76 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:request\(\) should return Spatie\\FlareClient\\Recorders\\RequestRecorder\\RequestRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 77 | + identifier: return.type |
50 | 78 | count: 1 |
51 | 79 | path: src/Flare.php |
52 | 80 |
|
53 | 81 | - |
54 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:response\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\ResponseRecorder\\\\ResponseRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 82 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:response\(\) should return Spatie\\FlareClient\\Recorders\\ResponseRecorder\\ResponseRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 83 | + identifier: return.type |
55 | 84 | count: 1 |
56 | 85 | path: src/Flare.php |
57 | 86 |
|
58 | 87 | - |
59 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:routing\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\RoutingRecorder\\\\RoutingRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 88 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:routing\(\) should return Spatie\\FlareClient\\Recorders\\RoutingRecorder\\RoutingRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 89 | + identifier: return.type |
60 | 90 | count: 1 |
61 | 91 | path: src/Flare.php |
62 | 92 |
|
63 | 93 | - |
64 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:transaction\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\TransactionRecorder\\\\TransactionRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 94 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:transaction\(\) should return Spatie\\FlareClient\\Recorders\\TransactionRecorder\\TransactionRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 95 | + identifier: return.type |
65 | 96 | count: 1 |
66 | 97 | path: src/Flare.php |
67 | 98 |
|
68 | 99 | - |
69 | | - message: "#^Method Spatie\\\\FlareClient\\\\Flare\\:\\:view\\(\\) should return Spatie\\\\FlareClient\\\\Recorders\\\\ViewRecorder\\\\ViewRecorder\\|null but returns Spatie\\\\FlareClient\\\\Contracts\\\\Recorders\\\\Recorder\\|null\\.$#" |
| 100 | + message: '#^Method Spatie\\FlareClient\\Flare\:\:view\(\) should return Spatie\\FlareClient\\Recorders\\ViewRecorder\\ViewRecorder\|null but returns Spatie\\FlareClient\\Contracts\\Recorders\\Recorder\|null\.$#' |
| 101 | + identifier: return.type |
70 | 102 | count: 1 |
71 | 103 | path: src/Flare.php |
72 | 104 |
|
73 | 105 | - |
74 | | - message: "#^Access to an undefined property Spatie\\\\FlareClient\\\\Contracts\\\\FlareCollectType\\:\\:\\$value\\.$#" |
| 106 | + message: '#^Access to an undefined property Spatie\\FlareClient\\Contracts\\FlareCollectType\:\:\$value\.$#' |
| 107 | + identifier: property.notFound |
75 | 108 | count: 4 |
76 | 109 | path: src/FlareConfig.php |
77 | 110 |
|
78 | 111 | - |
79 | | - message: "#^Unsafe usage of new static\\(\\)\\.$#" |
| 112 | + message: '#^Property Spatie\\FlareClient\\FlareConfig\:\:\$collects \(array\<string, array\{type\: Spatie\\FlareClient\\Contracts\\FlareCollectType, ignored\: bool\|null, options\: array\}\>\) does not accept non\-empty\-array\<array\{type\: Spatie\\FlareClient\\Contracts\\FlareCollectType, ignored\: bool\|null, options\?\: array\}\>\.$#' |
| 113 | + identifier: assign.propertyType |
80 | 114 | count: 1 |
81 | 115 | path: src/FlareConfig.php |
82 | 116 |
|
83 | 117 | - |
84 | | - message: "#^Property Spatie\\\\FlareClient\\\\Logger\\:\\:\\$logs \\(array\\<int, array\\{timeUnixNano\\: int, observedTimeUnixNano\\: int, traceId\\?\\: string, spanId\\?\\: string, flags\\?\\: string, severityText\\?\\: string, severityNumber\\?\\: int, body\\: mixed, \\.\\.\\.\\}\\>\\) does not accept non\\-empty\\-array\\<int, array\\{body\\: mixed, timeUnixNano\\?\\: int\\|int\\<1, max\\>, observedTimeUnixNano\\?\\: int\\|int\\<1, max\\>, traceId\\?\\: string, spanId\\?\\: string, flags\\?\\: string, severityText\\?\\: string, severityNumber\\?\\: int\\|int\\<1, max\\>, \\.\\.\\.\\}\\>\\.$#" |
| 118 | + message: '#^Property Spatie\\FlareClient\\FlareConfig\:\:\$collects \(array\<string, array\{type\: Spatie\\FlareClient\\Contracts\\FlareCollectType, ignored\: bool\|null, options\: array\}\>\) does not accept non\-empty\-array\<array\{type\: Spatie\\FlareClient\\Contracts\\FlareCollectType, ignored\?\: bool\|null, options\: array\}\>\.$#' |
| 119 | + identifier: assign.propertyType |
85 | 120 | count: 1 |
86 | | - path: src/Logger.php |
| 121 | + path: src/FlareConfig.php |
87 | 122 |
|
88 | 123 | - |
89 | | - message: "#^Class Spatie\\\\FlareClient\\\\Recorders\\\\ExternalHttpRecorder\\\\Guzzle\\\\FlareHandlerStack extends @final class GuzzleHttp\\\\HandlerStack\\.$#" |
| 124 | + message: '#^Unsafe usage of new static\(\)\.$#' |
| 125 | + identifier: new.static |
90 | 126 | count: 1 |
91 | | - path: src/Recorders/ExternalHttpRecorder/Guzzle/FlareHandlerStack.php |
| 127 | + path: src/FlareConfig.php |
92 | 128 |
|
93 | 129 | - |
94 | | - message: "#^Instanceof between Spatie\\\\FlareClient\\\\Spans\\\\SpanEvent and Spatie\\\\FlareClient\\\\Spans\\\\Span will always evaluate to false\\.$#" |
| 130 | + message: '#^Property Spatie\\FlareClient\\FlareProvider\:\:\$container on left side of \?\?\= is not nullable nor uninitialized\.$#' |
| 131 | + identifier: nullCoalesce.initializedProperty |
95 | 132 | count: 1 |
96 | | - path: src/Recorders/SpanEventsRecorder.php |
| 133 | + path: src/FlareProvider.php |
97 | 134 |
|
98 | 135 | - |
99 | | - message: "#^Instanceof between \\*NEVER\\* and Spatie\\\\FlareClient\\\\Spans\\\\SpanEvent will always evaluate to false\\.$#" |
| 136 | + message: '#^Property Spatie\\FlareClient\\Logger\:\:\$logs \(array\<int, array\{timeUnixNano\: int, observedTimeUnixNano\: int, traceId\?\: string, spanId\?\: string, flags\?\: string, severityText\?\: string, severityNumber\?\: int, body\: mixed, \.\.\.\}\>\) does not accept non\-empty\-array\<int, array\{body\: mixed, timeUnixNano\?\: int, observedTimeUnixNano\?\: int, traceId\?\: string, spanId\?\: string, flags\?\: string, severityText\?\: string, severityNumber\?\: int, \.\.\.\}\>\.$#' |
| 137 | + identifier: assign.propertyType |
100 | 138 | count: 1 |
101 | | - path: src/Recorders/SpansRecorder.php |
| 139 | + path: src/Logger.php |
102 | 140 |
|
103 | 141 | - |
104 | | - message: "#^Match arm is unreachable because previous comparison is always true\\.$#" |
| 142 | + message: '#^Class Spatie\\FlareClient\\Recorders\\ExternalHttpRecorder\\Guzzle\\FlareHandlerStack extends @final class GuzzleHttp\\HandlerStack\.$#' |
| 143 | + identifier: class.extendsFinalByPhpDoc |
105 | 144 | count: 1 |
106 | | - path: src/Recorders/SpansRecorder.php |
| 145 | + path: src/Recorders/ExternalHttpRecorder/Guzzle/FlareHandlerStack.php |
107 | 146 |
|
108 | 147 | - |
109 | | - message: "#^Parameter \\#1 \\$callback of function set_error_handler expects \\(callable\\(int, string, string, int\\)\\: bool\\)\\|null, array\\{\\$this\\(Spatie\\\\FlareClient\\\\Reporter\\), 'handleError'\\} given\\.$#" |
| 148 | + message: '#^Cannot unset property Spatie\\FlareClient\\ReportFactory\:\:\$throwable because it might have hooks in a subclass\.$#' |
| 149 | + identifier: unset.possiblyHookedProperty |
| 150 | + count: 1 |
| 151 | + path: src/ReportFactory.php |
| 152 | + |
| 153 | + - |
| 154 | + message: '#^Property Spatie\\FlareClient\\ReportFactory\:\:\$resource in isset\(\) is not nullable nor uninitialized\.$#' |
| 155 | + identifier: isset.initializedProperty |
| 156 | + count: 1 |
| 157 | + path: src/ReportFactory.php |
| 158 | + |
| 159 | + - |
| 160 | + message: '#^Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int\)\: bool\)\|null, array\{\$this\(Spatie\\FlareClient\\Reporter\), ''handleError''\} given\.$#' |
| 161 | + identifier: argument.type |
110 | 162 | count: 2 |
111 | 163 | path: src/Reporter.php |
112 | 164 |
|
113 | 165 | - |
114 | | - message: "#^Method Spatie\\\\FlareClient\\\\Support\\\\Container\\:\\:resolveAutowiringDefinition\\(\\) should return array\\<string, array\\{id\\: class\\-string, default\\?\\: mixed\\}\\>\\|null but returns array\\<non\\-empty\\-string, array\\{id\\: string, default\\: mixed\\}\\>\\.$#" |
| 166 | + message: '#^Parameter \#3 \$value of function curl_setopt expects array\|string, string\|false given\.$#' |
| 167 | + identifier: argument.type |
| 168 | + count: 1 |
| 169 | + path: src/Senders/CurlSender.php |
| 170 | + |
| 171 | + - |
| 172 | + message: '#^Parameter \#3 \$value of function curl_setopt expects non\-empty\-string, string given\.$#' |
| 173 | + identifier: argument.type |
| 174 | + count: 1 |
| 175 | + path: src/Senders/CurlSender.php |
| 176 | + |
| 177 | + - |
| 178 | + message: '#^Parameter \#3 \$value of function curl_setopt expects non\-empty\-string, string given\.$#' |
| 179 | + identifier: argument.type |
| 180 | + count: 1 |
| 181 | + path: src/Senders/DaemonSender.php |
| 182 | + |
| 183 | + - |
| 184 | + message: '#^Method Spatie\\FlareClient\\Support\\Container\:\:resolveAutowiringDefinition\(\) should return array\<string, array\{id\: class\-string, default\?\: mixed\}\>\|null but returns array\<non\-empty\-string, array\{id\: string, default\: mixed\}\>\.$#' |
| 185 | + identifier: return.type |
115 | 186 | count: 1 |
116 | 187 | path: src/Support/Container.php |
117 | 188 |
|
118 | 189 | - |
119 | | - message: "#^Access to an undefined property Spatie\\\\FlareClient\\\\Contracts\\\\FlareSpanType\\:\\:\\$value\\.$#" |
| 190 | + message: '#^Parameter \#1 \$array \(list\<array\|null\>\) of array_values is already a list, call has no effect\.$#' |
| 191 | + identifier: arrayValues.list |
| 192 | + count: 1 |
| 193 | + path: src/Support/OpenTelemetryAttributeMapper.php |
| 194 | + |
| 195 | + - |
| 196 | + message: '#^Access to an undefined property Spatie\\FlareClient\\Contracts\\FlareSpanType\:\:\$value\.$#' |
| 197 | + identifier: property.notFound |
120 | 198 | count: 2 |
121 | 199 | path: src/Tracer.php |
122 | 200 |
|
123 | 201 | - |
124 | | - message: "#^Comparison operation \"\\>\" between int\\<1, max\\> and 0 is always true\\.$#" |
| 202 | + message: '#^Comparison operation "\>" between int\<1, max\> and 0 is always true\.$#' |
| 203 | + identifier: greater.alwaysTrue |
| 204 | + count: 1 |
| 205 | + path: src/Tracer.php |
| 206 | + |
| 207 | + - |
| 208 | + message: '#^Trying to invoke \(Closure\(Spatie\\FlareClient\\Spans\\SpanEvent\)\: \(Spatie\\FlareClient\\Spans\\SpanEvent\|void\|null\)\)\|null but it might not be a callable\.$#' |
| 209 | + identifier: callable.nonCallable |
125 | 210 | count: 1 |
126 | 211 | path: src/Tracer.php |
0 commit comments