Skip to content

Update rector/rector requirement from ^0.17.0 to ^0.18.0 #379

Update rector/rector requirement from ^0.17.0 to ^0.18.0

Update rector/rector requirement from ^0.17.0 to ^0.18.0 #379

Triggered via pull request August 17, 2023 14:23
Status Success
Total duration 1m 6s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.1-ubuntu-latest: src/RequestFactory.php#L85
Escaped Mutant for Mutator "PregMatchRemoveCaret": --- Original +++ New @@ @@ // Parse body if ($method === 'POST') { $contentType = $request->getHeaderLine('content-type'); - if (preg_match('~^application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~^multipart/form-data($| |;)~', $contentType)) { + if (preg_match('~application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~^multipart/form-data($| |;)~', $contentType)) { $request = $request->withParsedBody($_POST); } }
mutation / PHP 8.1-ubuntu-latest: src/RequestFactory.php#L86
Escaped Mutant for Mutator "PregMatchRemoveCaret": --- Original +++ New @@ @@ // Parse body if ($method === 'POST') { $contentType = $request->getHeaderLine('content-type'); - if (preg_match('~^application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~^multipart/form-data($| |;)~', $contentType)) { + if (preg_match('~^application/x-www-form-urlencoded($| |;)~', $contentType) || preg_match('~multipart/form-data($| |;)~', $contentType)) { $request = $request->withParsedBody($_POST); } }
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L116
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ while (!$body->eof()) { $output = $body->read($this->bufferSize); if ($output === '') { - continue; + break; } echo $output; // flush the output buffer and send echoed messages to the browser
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L123
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ while (ob_get_level() > $level) { ob_end_flush(); } - flush(); + } } private function shouldOutputBody(ResponseInterface $response) : bool
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L141
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ return false; } $size = $body->getSize(); - if ($size !== null) { + if ($size === null) { return $size > 0; } if ($body->isSeekable()) {
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L146
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return $size > 0; } if ($body->isSeekable()) { - $body->rewind(); + $byte = $body->read(1); if ($byte === '' || $body->eof()) { return false;
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L147
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } if ($body->isSeekable()) { $body->rewind(); - $byte = $body->read(1); + $byte = $body->read(0); if ($byte === '' || $body->eof()) { return false; }
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L147
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } if ($body->isSeekable()) { $body->rewind(); - $byte = $body->read(1); + $byte = $body->read(2); if ($byte === '' || $body->eof()) { return false; }
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L149
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if ($body->isSeekable()) { $body->rewind(); $byte = $body->read(1); - if ($byte === '' || $body->eof()) { + if ($byte !== '' || $body->eof()) { return false; } }
mutation / PHP 8.1-ubuntu-latest: src/SapiEmitter.php#L149
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ if ($body->isSeekable()) { $body->rewind(); $byte = $body->read(1); - if ($byte === '' || $body->eof()) { + if ($byte === '' && $body->eof()) { return false; } }