Skip to content

Merge pull request #42 from chubbyphp/chubbyphp-mongo-parsing #878

Merge pull request #42 from chubbyphp/chubbyphp-mongo-parsing

Merge pull request #42 from chubbyphp/chubbyphp-mongo-parsing #878

Triggered via push February 11, 2024 09:36
Status Success
Total duration 4m 7s
Artifacts

ci.yml

on: push
docker-compose (production container)
3m 57s
docker-compose (production container)
PHP 8.1
59s
PHP 8.1
PHP 8.2
59s
PHP 8.2
PHP 8.3
1m 46s
PHP 8.3
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
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#L79
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict(), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict(), '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; })->postParse(static function (object $object) : array {
PHP 8.2: src/Parsing/PetParsing.php#L116
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#L116
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#L117
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#L79
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict(), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict(), '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; })->postParse(static function (object $object) : array {
PHP 8.1: src/Parsing/PetParsing.php#L116
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#L116
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#L117
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#L79
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ return $p->object(['offset' => $p->int(), 'limit' => $p->int(), 'filters' => $p->object(['name' => $p->string()->nullable()], PetCollectionFilters::class)->strict(), 'sort' => $p->object(['name' => $p->union([$p->literal('asc'), $p->literal('desc')])], PetCollectionSort::class)->strict(), '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; })->postParse(static function (object $object) : array {
PHP 8.3: src/Parsing/PetParsing.php#L116
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#L116
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#L117
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; }