Skip to content

misc: update PHPStan to version 2 #1191

misc: update PHPStan to version 2

misc: update PHPStan to version 2 #1191

Triggered via pull request December 19, 2024 14:18
Status Success
Total duration 2m 39s
Artifacts

mutation.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
Mutation tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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; } /**