Update doctrine/coding-standard requirement from ^13.0.1 to ^14.0.0 #62
Annotations
10 warnings
|
src/Merge/ReferenceNormalizer.php#L217
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
}, array_values($refFileCollection));
}
/** @param array<string, string> $refFileCollection */
- public function normalizeProperties(Schema $schema, array &$refFileCollection): Schema
+ protected function normalizeProperties(Schema $schema, array &$refFileCollection): Schema
{
if (!isset($schema->properties)) {
return $schema;
|
|
src/Merge/ReferenceNormalizer.php#L212
Escaped Mutant for Mutator "UnwrapArrayValues":
@@ @@
return $absoluteFile;
}
return new File($openApiFile->getAbsolutePath() . DIRECTORY_SEPARATOR . $refFile);
- }, array_values($refFileCollection));
+ }, $refFileCollection);
}
/** @param array<string, string> $refFileCollection */
public function normalizeProperties(Schema $schema, array &$refFileCollection): Schema
|
|
src/Merge/ReferenceNormalizer.php#L181
Escaped Mutant for Mutator "PregMatchRemoveCaret":
@@ @@
{
$matches = [];
$referenceFile = $reference->getReference();
- if (preg_match('~^(?<referenceFile>.*)(?<referenceString>#/.*)~', $referenceFile, $matches) === 1) {
+ if (preg_match('~(?<referenceFile>.*)(?<referenceString>#/.*)~', $referenceFile, $matches) === 1) {
$refFile = $matches['referenceFile'];
if ($refFile !== '') {
$refFileCollection[sha1($refFile)] = $refFile;
|
|
src/Merge/ReferenceNormalizer.php#L154
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
$allSchemas = $openApiDefinition->components->responses;
$allContents = $allSchemas[$key]->content;
foreach ($response->content as $contentKey => $content) {
- if (!$content->schema instanceof Schema) {
+ if (!true) {
continue;
}
$allContents[$contentKey]->schema = $this->normalizeProperties($content->schema, $refFileCollection);
|
|
src/Merge/ReferenceNormalizer.php#L146
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 */
|
|
src/Merge/ReferenceNormalizer.php#L135
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;
|
|
src/Merge/ReferenceNormalizer.php#L135
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;
|
|
src/Merge/ReferenceNormalizer.php#L94
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) {
|
|
src/Merge/ReferenceNormalizer.php#L60
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);
|
|
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;
}
}
|
The logs for this run have expired and are no longer available.
Loading