improve status #91
Annotations
4 warnings
Mutation testing (Infection):
src/Controller.php#L79
Escaped Mutant for Mutator "CastArray":
@@ @@
{
$new = clone $this;
$new->_query = arguments($new::acceptQuery()->parameters(), $serverRequest->getQueryParams());
- $new->_body = arguments($new::acceptBody()->parameters(), (array) ($serverRequest->getParsedBody() ?? []));
+ $new->_body = arguments($new::acceptBody()->parameters(), $serverRequest->getParsedBody() ?? []);
$new->_serverParams = $serverRequest->getServerParams();
$new->_attributes = $serverRequest->getAttributes();
$new->setFiles($serverRequest->getUploadedFiles());
|
Mutation testing (Infection):
src/Controller.php#L96
Escaped Mutant for Mutator "AssignCoalesce":
@@ @@
}
final public function body(): ArgumentsInterface
{
- return $this->_body ??= arguments(static::acceptBody()->parameters(), []);
+ return $this->_body = arguments(static::acceptBody()->parameters(), []);
}
final public function files(): ArgumentsInterface
{
|
Mutation testing (Infection):
src/Controller.php#L132
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();
|
Mutation testing (Infection):
src/Controller.php#L138
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$parameters = $this->acceptFiles()->parameters();
foreach ($files as $key => $file) {
$key = strval($key);
- $parameters->assertHas($key);
+
$array = ['error' => $file->getError(), 'name' => $file->getClientFilename(), 'type' => $file->getClientMediaType(), 'size' => $file->getSize(), 'tmp_name' => $file->getStream()->getMetadata('uri')];
$arguments[$key] = $array;
}
|
Loading