Update all non-major dependencies #301
Annotations
1 error and 11 warnings
|
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);
|
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;
|
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);
}
|
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;
}
}
|
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
|
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
|
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);
}
}
}
|
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);
|
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);
|
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;
|
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/
|
The logs for this run have expired and are no longer available.
Loading