Skip to content

typos

typos #161

Triggered via push January 24, 2026 19:45
Status Success
Total duration 34s
Artifacts

test.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

40 warnings
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L268
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @param array<string, UploadedFileInterface> $files */ - protected function setFiles(array $files): void + private function setFiles(array $files): void { $arguments = []; $parameters = $this->acceptFiles()->parameters();
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L218
Escaped Mutant for Mutator "Throw_": @@ @@ } final public function headers(): ArgumentsStringInterface { - return $this->_headers ?? throw new BadMethodCallException(); + return $this->_headers ?? new BadMethodCallException(); } final public function cookieParams(): MapInterface {
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L212
Escaped Mutant for Mutator "Throw_": @@ @@ } final public function bodyStream(): StreamInterface { - return $this->_bodyStream ?? throw new BadMethodCallException(); + return $this->_bodyStream ?? new BadMethodCallException(); } final public function headers(): ArgumentsStringInterface {
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L164
Escaped Mutant for Mutator "MBString": @@ @@ $headerIndexLowercase = new Vector(...array_map('mb_strtolower', $parameterKeys)); $headers = []; foreach (array_keys($serverRequest->getHeaders()) as $key) { - $lowercased = mb_strtolower($key); + $lowercased = strtolower($key); $pos = $headerIndexLowercase->find($lowercased) ?? null; if ($pos !== null) { /** @var string $key */
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L144
Escaped Mutant for Mutator "Coalesce": @@ @@ } $acceptBody = $new::acceptBody(); $acceptBody = $acceptBody instanceof ParametersAccessInterface ? $acceptBody->parameters() : arrayp(); - $new->_bodyParsed = arguments($acceptBody, is_array($new->_body) ? $new->_body : $parsedBody ?? []); + $new->_bodyParsed = arguments($acceptBody, is_array($new->_body) ? $new->_body : [] ?? $parsedBody); } catch (Throwable $e) { throw new ControllerException('[HTTP body] ' . $e->getMessage(), 400, $e, controller: static::class); }
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L134
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($new->_body === null) { - $new->_body = $streamed ?? $new->_bodyStream->__toString(); + $new->_body = $new->_bodyStream->__toString() ?? $streamed; } $acceptBody = $new::acceptBody(); $acceptBody = $acceptBody instanceof ParametersAccessInterface ? $acceptBody->parameters() : arrayp();
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ if (!$new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if (!($new->_body === null) && !($streamed !== '')) { $new->_body = $streamed; } }
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "NotIdentical": @@ @@ if (!$new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if ($new->_body === null && $streamed === '') { $new->_body = $streamed; } }
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L126
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null; - if (!$new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { + if (!$new->_body || $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); if ($new->_body === null && $streamed !== '') {
PHP 8.1 test on ubuntu-24.04: src/Controller.php#L122
Escaped Mutant for Mutator "IfNegation": @@ @@ try { $new->_bodyStream = $serverRequest->getBody(); $parsedBody = $serverRequest->getParsedBody(); - if (is_object($parsedBody)) { + if (!is_object($parsedBody)) { $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null;
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L268
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @param array<string, UploadedFileInterface> $files */ - protected function setFiles(array $files): void + private function setFiles(array $files): void { $arguments = []; $parameters = $this->acceptFiles()->parameters();
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L218
Escaped Mutant for Mutator "Throw_": @@ @@ final public function headers(): ArgumentsStringInterface { return $this->_headers - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function cookieParams(): MapInterface
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L212
Escaped Mutant for Mutator "Throw_": @@ @@ final public function bodyStream(): StreamInterface { return $this->_bodyStream - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function headers(): ArgumentsStringInterface
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L164
Escaped Mutant for Mutator "MBString": @@ @@ ); $headers = []; foreach (array_keys($serverRequest->getHeaders()) as $key) { - $lowercased = mb_strtolower($key); + $lowercased = strtolower($key); $pos = $headerIndexLowercase->find($lowercased) ?? null; if ($pos !== null) { /** @var string $key */
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L144
Escaped Mutant for Mutator "Coalesce": @@ @@ $acceptBody, is_array($new->_body) ? $new->_body - : ($parsedBody ?? []) + : ([] ?? $parsedBody) ); } catch (Throwable $e) { throw new ControllerException(
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L134
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($new->_body === null) { - $new->_body = $streamed ?? $new->_bodyStream->__toString(); + $new->_body = $new->_bodyStream->__toString() ?? $streamed; } $acceptBody = $new::acceptBody(); $acceptBody = $acceptBody instanceof ParametersAccessInterface
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if (!($new->_body === null) && !($streamed !== '')) { $new->_body = $streamed; } }
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "NotIdentical": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if ($new->_body === null && $streamed === '') { $new->_body = $streamed; } }
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L126
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null; - if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { + if (! $new->_body || $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); if ($new->_body === null && $streamed !== '') {
PHP 8.4 test on ubuntu-24.04: src/Controller.php#L122
Escaped Mutant for Mutator "IfNegation": @@ @@ try { $new->_bodyStream = $serverRequest->getBody(); $parsedBody = $serverRequest->getParsedBody(); - if (is_object($parsedBody)) { + if (!is_object($parsedBody)) { $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null;
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L268
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @param array<string, UploadedFileInterface> $files */ - protected function setFiles(array $files): void + private function setFiles(array $files): void { $arguments = []; $parameters = $this->acceptFiles()->parameters();
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L218
Escaped Mutant for Mutator "Throw_": @@ @@ final public function headers(): ArgumentsStringInterface { return $this->_headers - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function cookieParams(): MapInterface
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L212
Escaped Mutant for Mutator "Throw_": @@ @@ final public function bodyStream(): StreamInterface { return $this->_bodyStream - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function headers(): ArgumentsStringInterface
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L164
Escaped Mutant for Mutator "MBString": @@ @@ ); $headers = []; foreach (array_keys($serverRequest->getHeaders()) as $key) { - $lowercased = mb_strtolower($key); + $lowercased = strtolower($key); $pos = $headerIndexLowercase->find($lowercased) ?? null; if ($pos !== null) { /** @var string $key */
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L144
Escaped Mutant for Mutator "Coalesce": @@ @@ $acceptBody, is_array($new->_body) ? $new->_body - : ($parsedBody ?? []) + : ([] ?? $parsedBody) ); } catch (Throwable $e) { throw new ControllerException(
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L134
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($new->_body === null) { - $new->_body = $streamed ?? $new->_bodyStream->__toString(); + $new->_body = $new->_bodyStream->__toString() ?? $streamed; } $acceptBody = $new::acceptBody(); $acceptBody = $acceptBody instanceof ParametersAccessInterface
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if (!($new->_body === null) && !($streamed !== '')) { $new->_body = $streamed; } }
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "NotIdentical": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if ($new->_body === null && $streamed === '') { $new->_body = $streamed; } }
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L126
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null; - if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { + if (! $new->_body || $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); if ($new->_body === null && $streamed !== '') {
PHP 8.3 test on ubuntu-24.04: src/Controller.php#L122
Escaped Mutant for Mutator "IfNegation": @@ @@ try { $new->_bodyStream = $serverRequest->getBody(); $parsedBody = $serverRequest->getParsedBody(); - if (is_object($parsedBody)) { + if (!is_object($parsedBody)) { $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null;
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L268
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ /** * @param array<string, UploadedFileInterface> $files */ - protected function setFiles(array $files): void + private function setFiles(array $files): void { $arguments = []; $parameters = $this->acceptFiles()->parameters();
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L218
Escaped Mutant for Mutator "Throw_": @@ @@ final public function headers(): ArgumentsStringInterface { return $this->_headers - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function cookieParams(): MapInterface
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L212
Escaped Mutant for Mutator "Throw_": @@ @@ final public function bodyStream(): StreamInterface { return $this->_bodyStream - ?? throw new BadMethodCallException(); + ?? new BadMethodCallException(); } final public function headers(): ArgumentsStringInterface
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L164
Escaped Mutant for Mutator "MBString": @@ @@ ); $headers = []; foreach (array_keys($serverRequest->getHeaders()) as $key) { - $lowercased = mb_strtolower($key); + $lowercased = strtolower($key); $pos = $headerIndexLowercase->find($lowercased) ?? null; if ($pos !== null) { /** @var string $key */
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L144
Escaped Mutant for Mutator "Coalesce": @@ @@ $acceptBody, is_array($new->_body) ? $new->_body - : ($parsedBody ?? []) + : ([] ?? $parsedBody) ); } catch (Throwable $e) { throw new ControllerException(
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L134
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($new->_body === null) { - $new->_body = $streamed ?? $new->_bodyStream->__toString(); + $new->_body = $new->_bodyStream->__toString() ?? $streamed; } $acceptBody = $new::acceptBody(); $acceptBody = $acceptBody instanceof ParametersAccessInterface
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if (!($new->_body === null) && !($streamed !== '')) { $new->_body = $streamed; } }
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L129
Escaped Mutant for Mutator "NotIdentical": @@ @@ if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); - if ($new->_body === null && $streamed !== '') { + if ($new->_body === null && $streamed === '') { $new->_body = $streamed; } }
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L126
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null; - if (! $new->_body && $serverRequest->getHeaderLine('Content-Type') === 'application/json') { + if (! $new->_body || $serverRequest->getHeaderLine('Content-Type') === 'application/json') { $streamed = $new->_bodyStream->__toString(); $new->_body = json_decode($streamed, true); if ($new->_body === null && $streamed !== '') {
PHP 8.2 test on ubuntu-24.04: src/Controller.php#L122
Escaped Mutant for Mutator "IfNegation": @@ @@ try { $new->_bodyStream = $serverRequest->getBody(); $parsedBody = $serverRequest->getParsedBody(); - if (is_object($parsedBody)) { + if (!is_object($parsedBody)) { $parsedBody = (array) $parsedBody; } $new->_body = $parsedBody ?? null;