Update actions/checkout action to v4 - autoclosed #299
Annotations
22 warnings
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/ASTLocator/LocateASTFromFiles.php#L34
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
{
foreach ($files as $file) {
if (!is_file($file)) {
- continue;
+ break;
}
try {
$stmts = $this->parser->parse(file_get_contents($file), $this->errorHandler);
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L32
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach (array_keys($requires) as $require) {
if ($require === 'php' || $require === 'php-64bit') {
$addPhpCoreExtensions = true;
- continue;
+ break;
}
if (!str_starts_with($require, 'ext-')) {
continue;
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L36
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
continue;
}
if (!str_starts_with($require, 'ext-')) {
- continue;
+ break;
}
$extensions[] = substr($require, 4);
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L43
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$extensions[] = substr($require, 4);
}
if ($addPhpCoreExtensions) {
- $extensions = array_merge($extensions, $phpCoreExtensions);
+ $extensions = $phpCoreExtensions;
}
return $extensions;
}
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php#L94
Escaped Mutant for Mutator "UnwrapLtrim":
--- Original
+++ New
@@ @@
[]
);
return array_values(array_map(function (string $sourceDir) use($packageDir) {
- return $this->normalizePath($packageDir . '/' . ltrim($sourceDir, '/'));
+ return $this->normalizePath($packageDir . '/' . $sourceDir);
}, $flattened));
}
private function normalizePath(string $path) : string
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php#L103
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
}
private function normalizePath(string $path) : string
{
- return str_replace('\\', '/', $path);
+ return $path;
}
/**
* @param array<string> $locations
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php#L25
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
public function __invoke(array $globPatterns, string $rootDir) : Traversable
{
foreach ($globPatterns as $globPattern) {
- yield from Glob::glob(rtrim($rootDir, '/') . '/' . $globPattern);
+ yield from Glob::glob($rootDir . '/' . $globPattern);
}
}
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('did you pass it through a name resolver visitor?' . 'Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.1, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.1, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/ASTLocator/LocateASTFromFiles.php#L34
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
{
foreach ($files as $file) {
if (!is_file($file)) {
- continue;
+ break;
}
try {
$stmts = $this->parser->parse(file_get_contents($file), $this->errorHandler);
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L32
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach (array_keys($requires) as $require) {
if ($require === 'php' || $require === 'php-64bit') {
$addPhpCoreExtensions = true;
- continue;
+ break;
}
if (!str_starts_with($require, 'ext-')) {
continue;
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L36
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
continue;
}
if (!str_starts_with($require, 'ext-')) {
- continue;
+ break;
}
$extensions[] = substr($require, 4);
}
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/DefinedExtensionsResolver/DefinedExtensionsResolver.php#L43
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
$extensions[] = substr($require, 4);
}
if ($addPhpCoreExtensions) {
- $extensions = array_merge($extensions, $phpCoreExtensions);
+ $extensions = $phpCoreExtensions;
}
return $extensions;
}
}
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php#L94
Escaped Mutant for Mutator "UnwrapLtrim":
--- Original
+++ New
@@ @@
[]
);
return array_values(array_map(function (string $sourceDir) use($packageDir) {
- return $this->normalizePath($packageDir . '/' . ltrim($sourceDir, '/'));
+ return $this->normalizePath($packageDir . '/' . $sourceDir);
}, $flattened));
}
private function normalizePath(string $path) : string
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php#L103
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
}
private function normalizePath(string $path) : string
{
- return str_replace('\\', '/', $path);
+ return $path;
}
/**
* @param array<string> $locations
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php#L25
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
public function __invoke(array $globPatterns, string $rootDir) : Traversable
{
foreach ($globPatterns as $globPattern) {
- yield from Glob::glob(rtrim($rootDir, '/') . '/' . $globPattern);
+ yield from Glob::glob($rootDir . '/' . $globPattern);
}
}
}
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('did you pass it through a name resolver visitor?' . 'Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php#L147
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$namespacedName = $node->namespacedName;
}
if ($namespacedName === null) {
- throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ' . 'did you pass it through a name resolver visitor?', $node::class, $node->getLine()));
+ throw new UnexpectedValueException(sprintf('Given node of type "%s" (defined at line %s)does not have an assigned "namespacedName" property: ', $node::class, $node->getLine()));
}
$this->recordDefinitionOfStringSymbol((string) $namespacedName);
}
|
Mutation tests (locked, 8.2, ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|