Update all non-major dependencies #304
Triggered via pull request
September 15, 2023 11:53
Status
Failure
Total duration
7m 34s
Artifacts
–
Annotations
3 errors and 12 warnings
Mutation tests (locked, 8.2, ubuntu-latest)
Process completed with exit code 1.
|
Mutation tests (locked, 8.1, ubuntu-latest)
The job was canceled because "locked_8_2_ubuntu-latest" failed.
|
Mutation tests (locked, 8.1, ubuntu-latest)
The operation was canceled.
|
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/JsonLoader.php#L40
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
{
$content = self::getFileContentFromPath($path);
try {
- $decodedData = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
+ $decodedData = json_decode($content, true, 511, JSON_THROW_ON_ERROR);
Assert::isArray($decodedData);
} catch (Throwable $exception) {
throw new InvalidJson('error parsing ' . $path . ': ' . $exception->getMessage(), 0, $exception);
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/JsonLoader.php#L40
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
{
$content = self::getFileContentFromPath($path);
try {
- $decodedData = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
+ $decodedData = json_decode($content, true, 513, JSON_THROW_ON_ERROR);
Assert::isArray($decodedData);
} catch (Throwable $exception) {
throw new InvalidJson('error parsing ' . $path . ': ' . $exception->getMessage(), 0, $exception);
|
Mutation tests (locked, 8.2, ubuntu-latest):
src/ComposerRequireChecker/JsonLoader.php#L43
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$decodedData = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
Assert::isArray($decodedData);
} catch (Throwable $exception) {
- throw new InvalidJson('error parsing ' . $path . ': ' . $exception->getMessage(), 0, $exception);
+ throw new InvalidJson($path . 'error parsing ' . ': ' . $exception->getMessage(), 0, $exception);
}
/** @psalm-var ComposerData $decodedData */
return $decodedData;
|
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/
|
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/
|