Skip to content

Normalize more fields #97

Normalize more fields

Normalize more fields #97

Triggered via pull request July 23, 2024 13:29
Status Success
Total duration 1m 23s
Artifacts

build.yml

on: pull_request
Test if tests pass in the Docker container
41s
Test if tests pass in the Docker container
Matrix: Tests with coverage and PR Comments
Matrix: PHP Tests
Fit to window
Zoom out
Zoom in

Annotations

32 warnings
PHP Tests (8.3, latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 Tests (8.3, latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests (8.1, latest, true)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 Tests (8.1, latest, true)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests (8.1, lowest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 Tests (8.1, lowest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP Tests (8.2, latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 Tests (8.2, latest)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test if tests pass in the Docker 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/
Test if tests pass in the Docker container
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests with coverage and PR Comments (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v1.0.15. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests with coverage and PR Comments (8.3)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v1.0.15. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L61
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($operation->requestBody instanceof RequestBody) { foreach ($operation->requestBody->content as $contentType => $content) { $allRequestBodyContent = $operation->requestBody->content; - if (!$content->schema instanceof Schema) { + if (!true) { continue; } $allRequestBodyContent[$contentType]->schema = $this->normalizeProperties($content->schema, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L95
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($responseContent->schema instanceof Reference) { $responseContent->schema = $this->normalizeReference($responseContent->schema, $refFileCollection); } - if ($responseContent->schema instanceof Schema) { + if (true) { $schemaProperties = $responseContent->schema->properties ?? []; foreach ($schemaProperties as $propertyName => $property) { if (!$property instanceof Reference) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "NotIdentical": @@ @@ } } } - if ($openApiDefinition->components !== null) { + if ($openApiDefinition->components === null) { foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L136
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] ?? $openApiDefinition->components->schemas as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L136
Escaped Mutant for Mutator "Foreach_": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "Coalesce": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] ?? $openApiDefinition->components->responses as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "Foreach_": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L147
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!true) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L147
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!false) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L147
Escaped Mutant for Mutator "LogicalNot": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if ($response instanceof Response) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/FileHandling/RegexFinder.php#L61
Escaped Mutant for Mutator "UnwrapArrayFilter": @@ @@ }); $recursiveIterator = new RecursiveIteratorIterator($regexIterator); $matches = array_values(iterator_to_array($recursiveIterator)); - assert(array_filter($matches, static fn(mixed $input): bool => is_string($input)) === $matches); + assert($matches === $matches); return $matches; } }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L61
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($operation->requestBody instanceof RequestBody) { foreach ($operation->requestBody->content as $contentType => $content) { $allRequestBodyContent = $operation->requestBody->content; - if (!$content->schema instanceof Schema) { + if (!true) { continue; } $allRequestBodyContent[$contentType]->schema = $this->normalizeProperties($content->schema, $refFileCollection);
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L95
Escaped Mutant for Mutator "InstanceOf_": @@ @@ if ($responseContent->schema instanceof Reference) { $responseContent->schema = $this->normalizeReference($responseContent->schema, $refFileCollection); } - if ($responseContent->schema instanceof Schema) { + if (true) { $schemaProperties = $responseContent->schema->properties ?? []; foreach ($schemaProperties as $propertyName => $property) { if (!$property instanceof Reference) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L135
Escaped Mutant for Mutator "NotIdentical": @@ @@ } } } - if ($openApiDefinition->components !== null) { + if ($openApiDefinition->components === null) { foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) {
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L136
Escaped Mutant for Mutator "Coalesce": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] ?? $openApiDefinition->components->schemas as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L136
Escaped Mutant for Mutator "Foreach_": @@ @@ } } if ($openApiDefinition->components !== null) { - foreach ($openApiDefinition->components->schemas ?? [] as $key => $schema) { + foreach ([] as $key => $schema) { $allSchemas = $openApiDefinition->components->schemas; if (!$schema instanceof Schema) { continue;
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "Coalesce": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] ?? $openApiDefinition->components->responses as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L146
Escaped Mutant for Mutator "Foreach_": @@ @@ $allSchemas[$key] = $this->normalizeProperties($schema, $refFileCollection); $openApiDefinition->components->schemas = $allSchemas; } - foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { + foreach ([] as $key => $response) { if (!$response instanceof Response) { continue; }
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L147
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!true) { continue; } /** @var array<string, Response> $allSchemas */
Tests with coverage and PR Comments (8.3): src/Merge/ReferenceNormalizer.php#L147
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $openApiDefinition->components->schemas = $allSchemas; } foreach ($openApiDefinition->components->responses ?? [] as $key => $response) { - if (!$response instanceof Response) { + if (!false) { continue; } /** @var array<string, Response> $allSchemas */