chubbyphp-parsing #857
ci.yml
on: push
docker-compose (production container)
5m 1s
PHP 8.1
47s
PHP 8.2
48s
PHP 8.3
54s
Annotations
2 errors and 30 warnings
docker-compose (production container)
The run was canceled by @dominikzogg.
|
docker-compose (production container)
The operation was canceled.
|
PHP 8.2:
src/Middleware/ApiExceptionMiddleware.php#L82
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' > $exception->getLine(), 'trace' => $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.2:
src/Middleware/ApiExceptionMiddleware.php#L83
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' > $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(-1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L42
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default(CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L75
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->record($p->string()->nullable()), 'sort' => $p->record($p->union([$p->literal('asc'), $p->literal('desc')])->nullable()), 'items' => $p->array($this->getModelResponseSchema($request)), 'count' => $p->int(), '_type' => $p->literal('petCollection')->default('petCollection')], PetCollectionResponse::class)->strict()->postParse(function (PetCollectionResponse $petCollectionResponse) use($request) {
$queryParams = $request->getQueryParams();
/** @var array{offset: int, limit: int} $queryParams */
- $queryParams = array_merge($queryParams, ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit]);
+ $queryParams = ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit];
$petCollectionResponse->_links = ['list' => ['href' => $this->urlGenerator->generatePath('pet_list', [], $queryParams), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'GET']], 'create' => ['href' => $this->urlGenerator->generatePath('pet_create'), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'POST']]];
return $petCollectionResponse;
});
|
PHP 8.2:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(0), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(2), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.2:
src/Parsing/PetParsing.php#L107
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(0)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.1:
src/Middleware/ApiExceptionMiddleware.php#L82
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' > $exception->getLine(), 'trace' => $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.1:
src/Middleware/ApiExceptionMiddleware.php#L83
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' > $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(-1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L42
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default(CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L75
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->record($p->string()->nullable()), 'sort' => $p->record($p->union([$p->literal('asc'), $p->literal('desc')])->nullable()), 'items' => $p->array($this->getModelResponseSchema($request)), 'count' => $p->int(), '_type' => $p->literal('petCollection')->default('petCollection')], PetCollectionResponse::class)->strict()->postParse(function (PetCollectionResponse $petCollectionResponse) use($request) {
$queryParams = $request->getQueryParams();
/** @var array{offset: int, limit: int} $queryParams */
- $queryParams = array_merge($queryParams, ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit]);
+ $queryParams = ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit];
$petCollectionResponse->_links = ['list' => ['href' => $this->urlGenerator->generatePath('pet_list', [], $queryParams), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'GET']], 'create' => ['href' => $this->urlGenerator->generatePath('pet_create'), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'POST']]];
return $petCollectionResponse;
});
|
PHP 8.1:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(0), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(2), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.1:
src/Parsing/PetParsing.php#L107
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(0)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.3:
src/Middleware/ApiExceptionMiddleware.php#L82
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' > $exception->getLine(), 'trace' => $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.3:
src/Middleware/ApiExceptionMiddleware.php#L83
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
{
$exceptions = [];
do {
- $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTraceAsString()];
+ $exceptions[] = ['class' => $exception::class, 'message' => $exception->getMessage(), 'code' => $exception->getCode(), 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' > $exception->getTraceAsString()];
} while ($exception = $exception->getPrevious());
return $exceptions;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(-1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L40
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(1)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L42
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
if (null === $this->collectionRequestSchema) {
$p = $this->parser;
- $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default((string) CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
+ $this->collectionRequestSchema = $p->object(['offset' => $p->union([$p->string()->default('0')->toInt(), $p->int()->default(0)]), 'limit' => $p->union([$p->string()->default(CollectionInterface::LIMIT)->toInt(), $p->int()->default(CollectionInterface::LIMIT)]), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict()->default([]), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict()->default([])], PetCollectionRequest::class)->strict();
}
return $this->collectionRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L75
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->record($p->string()->nullable()), 'sort' => $p->record($p->union([$p->literal('asc'), $p->literal('desc')])->nullable()), 'items' => $p->array($this->getModelResponseSchema($request)), 'count' => $p->int(), '_type' => $p->literal('petCollection')->default('petCollection')], PetCollectionResponse::class)->strict()->postParse(function (PetCollectionResponse $petCollectionResponse) use($request) {
$queryParams = $request->getQueryParams();
/** @var array{offset: int, limit: int} $queryParams */
- $queryParams = array_merge($queryParams, ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit]);
+ $queryParams = ['offset' => $petCollectionResponse->offset, 'limit' => $petCollectionResponse->limit];
$petCollectionResponse->_links = ['list' => ['href' => $this->urlGenerator->generatePath('pet_list', [], $queryParams), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'GET']], 'create' => ['href' => $this->urlGenerator->generatePath('pet_create'), 'templated' => false, 'rel' => [], 'attributes' => ['method' => 'POST']]];
return $petCollectionResponse;
});
|
PHP 8.3:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(0), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L106
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(2), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|
PHP 8.3:
src/Parsing/PetParsing.php#L107
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
if (null === $this->modelRequestSchema) {
$p = $this->parser;
- $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(1)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
+ $this->modelRequestSchema = $p->object(['name' => $p->string()->minLength(1), 'tag' => $p->string()->minLength(0)->nullable(), 'vaccinations' => $p->array($p->object(['name' => $p->string()], VaccinationRequest::class)->strict(['_type']))->default([])], PetRequest::class)->strict(['id', 'createdAt', 'updatedAt', '_type', '_links']);
}
return $this->modelRequestSchema;
}
|