Skip to content

misc: update dependencies #1194

misc: update dependencies

misc: update dependencies #1194

Triggered via push December 19, 2024 14:28
Status Success
Total duration 11m 58s
Artifacts

mutation.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 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/Cache/ChainCache.php#L109
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ { $saved = true; foreach ($values as $key => $value) { - $saved = $this->set($key, $value, $ttl) && $saved; + $saved = $this->set($key, $value, $ttl) && !$saved; } return $saved; }
Mutation tests: src/Cache/FileSystemCache.php#L133
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ /** @var FilesystemIterator $file */ foreach (new FilesystemIterator($this->cacheDir) as $file) { if ($file->getFilename() === '.valinor.tmp') { - $success = @rmdir($this->cacheDir . DIRECTORY_SEPARATOR . $file->getFilename()) && $success; + $success = @rmdir($this->cacheDir . DIRECTORY_SEPARATOR . $file->getFilename()) || $success; continue; } if (!$file->isFile()) {
Mutation tests: src/Cache/FileSystemCache.php#L149
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $shouldDeleteRootDir = false; continue; } - $success = @Unlink($this->cacheDir . DIRECTORY_SEPARATOR . $file->getFilename()) && $success; + $success = @Unlink($this->cacheDir . DIRECTORY_SEPARATOR . $file->getFilename()) || $success; } if ($shouldDeleteRootDir) { $success = @rmdir($this->cacheDir) && $success;
Mutation tests: src/Cache/FileSystemCache.php#L183
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ { $deleted = true; foreach ($keys as $key) { - $deleted = $this->delete($key) && $deleted; + $deleted = $this->delete($key) && !$deleted; } return $deleted; }
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/Definition/Repository/Reflection/ReflectionClassDefinitionRepository.php#L138
Escaped Mutant for Mutator "SpreadRemoval": --- Original +++ New @@ @@ $localAliases = $localTypeAliasResolver->resolveLocalTypeAliases($type); $importedAliases = $importedTypeAliasResolver->resolveImportedTypeAliases($type); $duplicates = []; - $keys = [...array_keys($generics), ...array_keys($localAliases), ...array_keys($importedAliases)]; + $keys = [...array_keys($generics), ...array_keys($localAliases), array_keys($importedAliases)]; foreach ($keys as $key) { $sameKeys = array_filter($keys, fn($value) => $value === $key); if (count($sameKeys) > 1) {
Mutation tests: src/Definition/Repository/Reflection/TypeResolver/ParameterTypeResolver.php#L73
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ foreach ($annotations as $annotation) { $tokens = $annotation->filtered(); $dollarSignKey = array_search('$', $tokens, true); - if ($dollarSignKey === false) { + if ($dollarSignKey === true) { continue; } $parameterName = $tokens[$dollarSignKey + 1] ?? null;
Mutation tests: src/Library/Container.php#L136
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ $builder = new InterfaceNodeBuilder($builder, $this->get(ObjectImplementations::class), $this->get(ClassDefinitionRepository::class), new FunctionsContainer($this->get(FunctionDefinitionRepository::class), $settings->customConstructors)); $builder = new CasterProxyNodeBuilder($builder); $builder = new IterableNodeBuilder($builder); - if (count($settings->valueModifier) > 0) { + if (count($settings->valueModifier) >= 0) { $builder = new ValueAlteringNodeBuilder($builder, new FunctionsContainer($this->get(FunctionDefinitionRepository::class), $settings->valueModifier)); } $builder = new StrictNodeBuilder($builder);
Mutation tests: src/Mapper/Object/Argument.php#L79
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ } public function attributes() : Attributes { - return $this->attributes ??= Attributes::empty(); + return $this->attributes = Attributes::empty(); } }
Mutation tests: src/Mapper/Object/ArgumentsValues.php#L43
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ public static function forInterface(Arguments $arguments, Shell $shell) : self { $self = new self($arguments); - $self->forInterface = true; + $self->forInterface = false; if (count($arguments) > 0) { $self->transform($shell); }