|
4 | 4 | <MixedArrayOffset> |
5 | 5 | <code><![CDATA[$cacheControlDirectives[$regex]]]></code> |
6 | 6 | </MixedArrayOffset> |
7 | | - <RiskyTruthyFalsyComparison> |
8 | | - <code><![CDATA[$clearStatCacheInterval]]></code> |
9 | | - </RiskyTruthyFalsyComparison> |
10 | | - </file> |
11 | | - <file src="src/Command/IsRunningTrait.php"> |
12 | | - <RiskyTruthyFalsyComparison> |
13 | | - <code><![CDATA[$managerPid]]></code> |
14 | | - <code><![CDATA[$masterPid]]></code> |
15 | | - <code><![CDATA[$masterPid]]></code> |
16 | | - </RiskyTruthyFalsyComparison> |
17 | 7 | </file> |
18 | 8 | <file src="src/Command/ReloadCommand.php"> |
19 | 9 | <DeprecatedMethod> |
|
64 | 54 | <PossiblyFalseIterator> |
65 | 55 | <code><![CDATA[scandir($path)]]></code> |
66 | 56 | </PossiblyFalseIterator> |
67 | | - <RedundantCondition> |
68 | | - <code><![CDATA[isArray]]></code> |
69 | | - </RedundantCondition> |
70 | | - </file> |
71 | | - <file src="src/HttpServerFactory.php"> |
72 | | - <RiskyTruthyFalsyComparison> |
73 | | - <code><![CDATA[$enableCoroutine]]></code> |
74 | | - </RiskyTruthyFalsyComparison> |
75 | 57 | </file> |
76 | 58 | <file src="src/Log/AccessLogDataMap.php"> |
77 | 59 | <FalsableReturnStatement> |
|
99 | 81 | <PossiblyNullReference> |
100 | 82 | <code><![CDATA[getHeaderSize]]></code> |
101 | 83 | </PossiblyNullReference> |
102 | | - <RiskyTruthyFalsyComparison> |
103 | | - <code><![CDATA[$port]]></code> |
104 | | - <code><![CDATA[(string) $this->psrResponse->getBody()->getSize()]]></code> |
105 | | - <code><![CDATA[getenv($name)]]></code> |
106 | | - </RiskyTruthyFalsyComparison> |
107 | | - </file> |
108 | | - <file src="src/Log/AccessLogFormatter.php"> |
109 | | - <InvalidNullableReturnType> |
110 | | - <code><![CDATA[string]]></code> |
111 | | - <code><![CDATA[string]]></code> |
112 | | - </InvalidNullableReturnType> |
113 | | - <NullableReturnStatement> |
114 | | - <code><![CDATA[preg_replace_callback( |
115 | | - '#%(?:[<>])?([%aABbDfhHklLmpPqrRstTuUvVXIOS])#', |
116 | | - static fn(array $matches) => match ($matches[1]) { |
117 | | - '%' => '%', |
118 | | - 'a' => $map->getClientIp(), |
119 | | - 'A' => $map->getLocalIp(), |
120 | | - 'B' => $map->getBodySize('0'), |
121 | | - 'b' => $map->getBodySize('-'), |
122 | | - 'D' => $map->getRequestDuration('ms'), |
123 | | - 'f' => $map->getFilename(), |
124 | | - 'h' => $map->getRemoteHostname(), |
125 | | - 'H' => $map->getProtocol(), |
126 | | - 'm' => $map->getMethod(), |
127 | | - 'p' => $map->getPort('canonical'), |
128 | | - 'q' => $map->getQuery(), |
129 | | - 'r' => $map->getRequestLine(), |
130 | | - 's' => $map->getStatus(), |
131 | | - 't' => $map->getRequestTime('begin:%d/%b/%Y:%H:%M:%S %z'), |
132 | | - 'T' => $map->getRequestDuration('s'), |
133 | | - 'u' => $map->getRemoteUser(), |
134 | | - 'U' => $map->getPath(), |
135 | | - 'v' => $map->getHost(), |
136 | | - 'V' => $map->getServerName(), |
137 | | - 'I' => (string) ($map->getRequestMessageSize() ?? '-'), |
138 | | - 'O' => (string) ($map->getResponseMessageSize() ?? '-'), |
139 | | - 'S' => $map->getTransferredSize(), |
140 | | - default => '-', |
141 | | - }, |
142 | | - $format |
143 | | - )]]></code> |
144 | | - <code><![CDATA[preg_replace_callback( |
145 | | - '#%(?:[<>])?{([^}]+)}([aCeinopPtT])#', |
146 | | - static fn(array $matches) => match ($matches[2]) { |
147 | | - 'a' => $map->getClientIp(), |
148 | | - 'C' => $map->getCookie($matches[1]), |
149 | | - 'e' => $map->getEnv($matches[1]), |
150 | | - 'i' => $map->getRequestHeader($matches[1]), |
151 | | - 'o' => $map->getResponseHeader($matches[1]), |
152 | | - 'p' => $map->getPort($matches[1]), |
153 | | - 't' => $map->getRequestTime($matches[1]), |
154 | | - 'T' => $map->getRequestDuration($matches[1]), |
155 | | - default => '-', |
156 | | - }, |
157 | | - $format |
158 | | - )]]></code> |
159 | | - </NullableReturnStatement> |
160 | 84 | </file> |
161 | 85 | <file src="src/Log/Psr3AccessLogDecorator.php"> |
162 | 86 | <MissingParamType> |
|
195 | 119 | <MixedPropertyTypeCoercion> |
196 | 120 | <code><![CDATA[$middleware]]></code> |
197 | 121 | </MixedPropertyTypeCoercion> |
198 | | - <RiskyTruthyFalsyComparison> |
199 | | - <code><![CDATA[! $filename]]></code> |
200 | | - </RiskyTruthyFalsyComparison> |
201 | 122 | </file> |
202 | 123 | <file src="src/StaticResourceHandler.php"> |
203 | 124 | <MixedOperand> |
|
214 | 135 | <MixedPropertyTypeCoercion> |
215 | 136 | <code><![CDATA[$cacheControlDirectives]]></code> |
216 | 137 | </MixedPropertyTypeCoercion> |
217 | | - <RiskyTruthyFalsyComparison> |
218 | | - <code><![CDATA[$cacheControl]]></code> |
219 | | - </RiskyTruthyFalsyComparison> |
220 | 138 | </file> |
221 | 139 | <file src="src/StaticResourceHandler/ETagMiddleware.php"> |
222 | 140 | <ArgumentTypeCoercion> |
|
228 | 146 | <PossiblyFalseArgument> |
229 | 147 | <code><![CDATA[$etag]]></code> |
230 | 148 | </PossiblyFalseArgument> |
231 | | - <RiskyTruthyFalsyComparison> |
232 | | - <code><![CDATA[$ifMatch]]></code> |
233 | | - <code><![CDATA[filemtime($filename)]]></code> |
234 | | - <code><![CDATA[filesize($filename)]]></code> |
235 | | - </RiskyTruthyFalsyComparison> |
236 | 149 | <UnusedProperty> |
237 | 150 | <code><![CDATA[$allowedETagValidationTypes]]></code> |
238 | 151 | </UnusedProperty> |
|
269 | 182 | <ArgumentTypeCoercion> |
270 | 183 | <code><![CDATA[$regexp]]></code> |
271 | 184 | </ArgumentTypeCoercion> |
272 | | - <RiskyTruthyFalsyComparison> |
273 | | - <code><![CDATA[filemtime($filename)]]></code> |
274 | | - </RiskyTruthyFalsyComparison> |
275 | 185 | </file> |
276 | 186 | <file src="src/StaticResourceHandler/StaticResourceResponse.php"> |
277 | 187 | <PossiblyFalsePropertyAssignmentValue> |
278 | 188 | <code><![CDATA[filesize($filename)]]></code> |
279 | 189 | </PossiblyFalsePropertyAssignmentValue> |
280 | | - <RiskyTruthyFalsyComparison> |
281 | | - <code><![CDATA[$responseContentCallback]]></code> |
282 | | - </RiskyTruthyFalsyComparison> |
283 | 190 | </file> |
284 | 191 | <file src="src/StaticResourceHandler/ValidateRegexTrait.php"> |
285 | 192 | <ArgumentTypeCoercion> |
|
295 | 202 | <PossiblyNullReference> |
296 | 203 | <code><![CDATA[asString]]></code> |
297 | 204 | </PossiblyNullReference> |
298 | | - <RiskyTruthyFalsyComparison> |
299 | | - <code><![CDATA[$cookie->getDomain()]]></code> |
300 | | - <code><![CDATA[$cookie->getPath()]]></code> |
301 | | - </RiskyTruthyFalsyComparison> |
302 | 205 | </file> |
303 | 206 | <file src="src/SwooleRequestHandlerRunner.php"> |
304 | 207 | <PossiblyUnusedReturnValue> |
|
319 | 222 | <PossiblyUnusedReturnValue> |
320 | 223 | <code><![CDATA[int]]></code> |
321 | 224 | </PossiblyUnusedReturnValue> |
322 | | - <RiskyTruthyFalsyComparison> |
323 | | - <code><![CDATA[$key]]></code> |
324 | | - <code><![CDATA[$this->body]]></code> |
325 | | - <code><![CDATA[$this->request->rawContent()]]></code> |
326 | | - </RiskyTruthyFalsyComparison> |
327 | 225 | </file> |
328 | 226 | <file src="src/Task/DeferredListenerDelegator.php"> |
329 | 227 | <UnusedParam> |
|
0 commit comments