Skip to content

misc: update PHPStan to version 2 #1179

misc: update PHPStan to version 2

misc: update PHPStan to version 2 #1179

Triggered via pull request November 17, 2024 18:07
Status Success
Total duration 4m 52s
Artifacts

mutation.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
Mutation tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3, actions/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Mutation tests: src/Definition/Repository/Reflection/ReflectionAttributesRepository.php#L49
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ $parentAttributes = Reflection::class($attribute->getName())->getAttributes(AsTransformer::class); return $parentAttributes !== []; }); - return array_values(array_map(fn(ReflectionAttribute $attribute) => new AttributeDefinition($this->classDefinitionRepository->for(new NativeClassType($attribute->getName())), array_values($attribute->getArguments())), $attributes)); + return array_values(array_map(fn(ReflectionAttribute $attribute) => new AttributeDefinition($this->classDefinitionRepository->for(new NativeClassType($attribute->getName())), $attribute->getArguments()), $attributes)); } /** * @param ReflectionAttribute<object> $attribute
Mutation tests: src/Mapper/Tree/Message/Messages.php#L93
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ public function errors() : self { $clone = clone $this; - $clone->messages = array_values(array_filter($clone->messages, fn(NodeMessage $message) => $message->isError())); + $clone->messages = array_filter($clone->messages, fn(NodeMessage $message) => $message->isError()); return $clone; } public function formatWith(MessageFormatter ...$formatters) : self
Mutation tests: src/MapperBuilder.php#L234
Escaped Mutant for Mutator "UnwrapArrayValues": --- Original +++ New @@ @@ public function supportDateFormats(string $format, string ...$formats) : self { $clone = clone $this; - $clone->settings->supportedDateFormats = array_values(array_unique([$format, ...$formats])); + $clone->settings->supportedDateFormats = array_unique([$format, ...$formats]); return $clone; } /**