CI #753
ci.yml
on: schedule
docker-compose (production container)
3m 7s
PHP 8.0
20s
PHP 8.1
47s
PHP 8.2
54s
Annotations
1 error and 10 warnings
PHP 8.0
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires chubbyphp/chubbyphp-dev-helper dev-master -> satisfiable by chubbyphp/chubbyphp-dev-helper[dev-master].
- chubbyphp/chubbyphp-dev-helper dev-master requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement.
|
PHP 8.1:
src/Mapping/Deserialization/PetMapping.php#L44
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*/
public function getDenormalizationFieldMappings(string $path, ?string $type = null) : array
{
- return [DenormalizationFieldMappingBuilder::createConvertType('name', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::createConvertType('tag', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::create('vaccinations', false, new EmbedManyFieldDenormalizer(Vaccination::class, new MethodAccessor('vaccinations')))->getMapping()];
+ return [DenormalizationFieldMappingBuilder::createConvertType('name', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::createConvertType('tag', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::create('vaccinations', true, new EmbedManyFieldDenormalizer(Vaccination::class, new MethodAccessor('vaccinations')))->getMapping()];
}
}
|
PHP 8.1:
src/Repository/PetRepository.php#L48
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$queryBuilder->andWhere($queryBuilder->expr()->like('p.name', ':name'));
$queryBuilder->setParameter('name', '%' . $filters['name'] . '%');
}
- $countQueryBuilder = clone $queryBuilder;
+ $countQueryBuilder = $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
$itemsQueryBuilder = clone $queryBuilder;
|
PHP 8.1:
src/Repository/PetRepository.php#L53
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$countQueryBuilder = clone $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
- $itemsQueryBuilder = clone $queryBuilder;
+ $itemsQueryBuilder = $queryBuilder;
foreach ($petCollection->getSort() as $field => $order) {
$itemsQueryBuilder->addOrderBy(sprintf('p.%s', $field), $order);
}
|
PHP 8.1:
src/RequestHandler/Api/Crud/ListRequestHandler.php#L40
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
/** @var CollectionInterface $collection */
$collection = $this->requestManager->getDataFromRequestQuery($request, $this->factory->create());
if ([] !== ($errors = $this->validator->validate($collection))) {
- throw HttpException::createBadRequest(['invalidParameters' => (new ApiProblemErrorMessages($errors))->getMessages()]);
+ throw HttpException::createBadRequest(['invalidParameters' > (new ApiProblemErrorMessages($errors))->getMessages()]);
}
$this->repository->resolveCollection($collection);
$context = NormalizerContextBuilder::create()->setRequest($request)->getContext();
|
PHP 8.1:
src/RequestHandler/OpenapiRequestHandler.php#L29
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
public function handle(ServerRequestInterface $request) : ResponseInterface
{
- return $this->responseFactory->createResponse(200)->withHeader('Content-Type', 'application/x-yaml')->withHeader('Cache-Control', 'no-cache, no-store, must-revalidate')->withHeader('Pragma', 'no-cache')->withHeader('Expires', '0')->withBody($this->streamFactory->createStreamFromFile(__DIR__ . '/../../openapi.yml'));
+ return $this->responseFactory->createResponse(200)->withHeader('Content-Type', 'application/x-yaml')->withHeader('Cache-Control', 'no-cache, no-store, must-revalidate')->withHeader('Pragma', 'no-cache')->withHeader('Expires', '0')->withBody($this->streamFactory->createStreamFromFile('/../../openapi.yml'));
}
}
|
PHP 8.2:
src/Mapping/Deserialization/PetMapping.php#L44
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*/
public function getDenormalizationFieldMappings(string $path, ?string $type = null) : array
{
- return [DenormalizationFieldMappingBuilder::createConvertType('name', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::createConvertType('tag', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::create('vaccinations', false, new EmbedManyFieldDenormalizer(Vaccination::class, new MethodAccessor('vaccinations')))->getMapping()];
+ return [DenormalizationFieldMappingBuilder::createConvertType('name', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::createConvertType('tag', ConvertTypeFieldDenormalizer::TYPE_STRING)->getMapping(), DenormalizationFieldMappingBuilder::create('vaccinations', true, new EmbedManyFieldDenormalizer(Vaccination::class, new MethodAccessor('vaccinations')))->getMapping()];
}
}
|
PHP 8.2:
src/Repository/PetRepository.php#L48
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$queryBuilder->andWhere($queryBuilder->expr()->like('p.name', ':name'));
$queryBuilder->setParameter('name', '%' . $filters['name'] . '%');
}
- $countQueryBuilder = clone $queryBuilder;
+ $countQueryBuilder = $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
$itemsQueryBuilder = clone $queryBuilder;
|
PHP 8.2:
src/Repository/PetRepository.php#L53
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
$countQueryBuilder = clone $queryBuilder;
$countQueryBuilder->select($queryBuilder->expr()->count('p.id'));
$petCollection->setCount((int) $countQueryBuilder->getQuery()->getSingleScalarResult());
- $itemsQueryBuilder = clone $queryBuilder;
+ $itemsQueryBuilder = $queryBuilder;
foreach ($petCollection->getSort() as $field => $order) {
$itemsQueryBuilder->addOrderBy(sprintf('p.%s', $field), $order);
}
|
PHP 8.2:
src/RequestHandler/Api/Crud/ListRequestHandler.php#L40
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
/** @var CollectionInterface $collection */
$collection = $this->requestManager->getDataFromRequestQuery($request, $this->factory->create());
if ([] !== ($errors = $this->validator->validate($collection))) {
- throw HttpException::createBadRequest(['invalidParameters' => (new ApiProblemErrorMessages($errors))->getMessages()]);
+ throw HttpException::createBadRequest(['invalidParameters' > (new ApiProblemErrorMessages($errors))->getMessages()]);
}
$this->repository->resolveCollection($collection);
$context = NormalizerContextBuilder::create()->setRequest($request)->getContext();
|
PHP 8.2:
src/RequestHandler/OpenapiRequestHandler.php#L29
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
public function handle(ServerRequestInterface $request) : ResponseInterface
{
- return $this->responseFactory->createResponse(200)->withHeader('Content-Type', 'application/x-yaml')->withHeader('Cache-Control', 'no-cache, no-store, must-revalidate')->withHeader('Pragma', 'no-cache')->withHeader('Expires', '0')->withBody($this->streamFactory->createStreamFromFile(__DIR__ . '/../../openapi.yml'));
+ return $this->responseFactory->createResponse(200)->withHeader('Content-Type', 'application/x-yaml')->withHeader('Cache-Control', 'no-cache, no-store, must-revalidate')->withHeader('Pragma', 'no-cache')->withHeader('Expires', '0')->withBody($this->streamFactory->createStreamFromFile('/../../openapi.yml'));
}
}
|