Skip to content

chore(deps): update codecov/codecov-action action to v5 #267

chore(deps): update codecov/codecov-action action to v5

chore(deps): update codecov/codecov-action action to v5 #267

Triggered via pull request November 14, 2024 20:03
Status Success
Total duration 27s
Artifacts

infection.yaml

on: pull_request
Infection
17s
Infection
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
Infection
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Infection: src/Stub.php#L37
Escaped Mutant for Mutator "TrueValue": @@ @@ if ($reflectionProperty === null) { throw new ReflectionException(sprintf('Property "%s" not found', $property)); } - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $reflectionProperty->setValue($stub, $value); } return $stub;
Infection: src/Stub.php#L37
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if ($reflectionProperty === null) { throw new ReflectionException(sprintf('Property "%s" not found', $property)); } - $reflectionProperty->setAccessible(true); + $reflectionProperty->setValue($stub, $value); } return $stub;
Infection: src/Stub.php#L62
Escaped Mutant for Mutator "TrueValue": @@ @@ /** @var array<string, mixed> $properties */ $properties = []; foreach (self::getAllProperties($reflection) as $property) { - $property->setAccessible(true); + $property->setAccessible(false); if (!$property->isInitialized($stub)) { continue; }
Infection: src/Stub.php#L62
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ /** @var array<string, mixed> $properties */ $properties = []; foreach (self::getAllProperties($reflection) as $property) { - $property->setAccessible(true); + if (!$property->isInitialized($stub)) { continue; }
Infection: src/Stub.php#L115
Escaped Mutant for Mutator "Identical": @@ @@ * @phpstan-var ReflectionClass<T>|false $parentClass */ $parentClass = $reflection->getParentClass(); - if ($parentClass === false) { + if ($parentClass !== false) { return $properties; } return self::getAllProperties($parentClass, $properties); } }
Infection: src/TestCheck/EveryTestHasGroup.php#L65
Escaped Mutant for Mutator "Continue_": @@ @@ foreach ($groups as $group) { if ($this->requiredGroups !== null && in_array($group, $this->requiredGroups, true)) { $hasRequiredGroup = true; - continue; + break; } if ($this->supportedGroups === null) { continue;
Infection: src/TestCheck/EveryTestHasGroup.php#L69
Escaped Mutant for Mutator "Continue_": @@ @@ continue; } if ($this->supportedGroups === null) { - continue; + break; } $testCaseContext::assertContains($group, $this->supportedGroups, sprintf('Test "%s" has invalid Group attribute "%s"', $classReflection->getName(), $group)); }
Infection: src/TestCheck/EveryTestHasSameNamespaceAsCoveredClass.php#L56
Escaped Mutant for Mutator "Continue_": @@ @@ $testCaseContext::fail(sprintf('Specifying CoversClass and CoversNothing attributes at the same time makes no sense (in "%s").', $filePathName)); } if ($hasCoversNothing || $hasCovers) { - continue; + break; } $className = $classReflection->getName(); $classNameWithoutSuffix = substr($className, 0, -4);
Infection: src/TestCheck/EveryTestHasSameNamespaceAsCoveredClass.php#L62
Escaped Mutant for Mutator "FalseValue": @@ @@ $className = $classReflection->getName(); $classNameWithoutSuffix = substr($className, 0, -4); $pos = strpos($classNameWithoutSuffix, $this->testsNamespaceSuffix); - if ($pos === false) { + if ($pos === true) { $coveredClassName = $classNameWithoutSuffix; } else { $coveredClassName = substr_replace($classNameWithoutSuffix, '\\', $pos, strlen($this->testsNamespaceSuffix));
Infection: src/TestCheck/EveryTestHasSameNamespaceAsCoveredClass.php#L74
Escaped Mutant for Mutator "Continue_": @@ @@ $coveredClassName = substr_replace($classNameWithoutSuffix, '\\', $pos, strlen($this->testsNamespaceSuffix)); } if (class_exists($coveredClassName) || trait_exists($coveredClassName)) { - continue; + break; } $testCaseContext::fail(sprintf('Test "%s" is in the wrong namespace, ' . 'has name different from tested class or is missing CoversClass attribute', $classReflection->getName())); } } }