php 8.3 #762
ci.yml
on: push
docker-compose (production container)
1m 23s
PHP 8.1
51s
PHP 8.2
43s
PHP 8.3
57s
Annotations
23 warnings
PHP 8.2:
src/Repository/PetRepository.php#L46
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#L51
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#L39
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#L28
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/ServiceFactory/Deserialization/DenormalizationObjectMappingsFactory.php#L26
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
/** @var DenormalizationFieldMappingFactoryInterface $denormalizationFieldMappingFactory */
$denormalizationFieldMappingFactory = $this->resolveDependency($container, DenormalizationFieldMappingFactoryInterface::class, DenormalizationFieldMappingFactoryFactory::class);
- return [new PetCollectionMapping($denormalizationFieldMappingFactory), new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
+ return [new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
}
}
|
PHP 8.2:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L18
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
- if (null !== $config['cache']) {
+ if (null === $config['cache']) {
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
|
PHP 8.2:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L19
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
if (null !== $config['cache']) {
- $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
+ $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = false;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
return new FastRouteRouter(null, null, $fastrouteConfig);
}
}
|
PHP 8.1
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.1:
src/Repository/PetRepository.php#L46
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#L51
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#L39
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#L28
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.1:
src/ServiceFactory/Deserialization/DenormalizationObjectMappingsFactory.php#L26
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
/** @var DenormalizationFieldMappingFactoryInterface $denormalizationFieldMappingFactory */
$denormalizationFieldMappingFactory = $this->resolveDependency($container, DenormalizationFieldMappingFactoryInterface::class, DenormalizationFieldMappingFactoryFactory::class);
- return [new PetCollectionMapping($denormalizationFieldMappingFactory), new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
+ return [new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
}
}
|
PHP 8.1:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L18
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
- if (null !== $config['cache']) {
+ if (null === $config['cache']) {
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
|
PHP 8.1:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L19
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
if (null !== $config['cache']) {
- $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
+ $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = false;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
return new FastRouteRouter(null, null, $fastrouteConfig);
}
}
|
PHP 8.3:
src/Repository/PetRepository.php#L46
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.3:
src/Repository/PetRepository.php#L51
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.3:
src/RequestHandler/Api/Crud/ListRequestHandler.php#L39
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.3:
src/RequestHandler/OpenapiRequestHandler.php#L28
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.3:
src/ServiceFactory/Deserialization/DenormalizationObjectMappingsFactory.php#L26
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
/** @var DenormalizationFieldMappingFactoryInterface $denormalizationFieldMappingFactory */
$denormalizationFieldMappingFactory = $this->resolveDependency($container, DenormalizationFieldMappingFactoryInterface::class, DenormalizationFieldMappingFactoryFactory::class);
- return [new PetCollectionMapping($denormalizationFieldMappingFactory), new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
+ return [new PetMapping($denormalizationFieldMappingFactory), new VaccinationMapping($denormalizationFieldMappingFactory)];
}
}
|
PHP 8.3:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L18
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
{
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
- if (null !== $config['cache']) {
+ if (null === $config['cache']) {
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
|
PHP 8.3:
src/ServiceFactory/Framework/FastRouteRouterFactory.php#L19
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$config = $container->get('config')['fastroute'];
$fastrouteConfig = [];
if (null !== $config['cache']) {
- $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = true;
+ $fastrouteConfig[FastRouteRouter::CONFIG_CACHE_ENABLED] = false;
$fastrouteConfig[FastRouteRouter::CONFIG_CACHE_FILE] = $config['cache'];
}
return new FastRouteRouter(null, null, $fastrouteConfig);
}
}
|
docker-compose (production container)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|