Update dependencies and fix all phpstan errors #74
commit.yml
on: push
Unit Tests
16s
Code Style (PSR-12)
12s
Infection Check
22s
Matrix: Static Analysis Check
Annotations
8 errors and 20 warnings
Static Analysis Check (8.2)
Docker pull failed with exit code 1
|
Static Analysis Check (8)
The job was canceled because "_8_2" failed.
|
Static Analysis Check (8)
Docker pull failed with exit code 1
|
Static Analysis Check (8.1)
The job was canceled because "_8_2" failed.
|
Static Analysis Check (8.1)
The operation was canceled.
|
Static Analysis Check (8.3)
The job was canceled because "_8_2" failed.
|
Static Analysis Check (8.3)
Docker pull failed with exit code 1
|
Code Style (PSR-12)
Docker pull failed with exit code 1
|
Static Analysis Check (8.2)
Docker pull failed with exit code 1, back off 1.475 seconds before retry.
|
Static Analysis Check (8.2)
Docker pull failed with exit code 1, back off 3.635 seconds before retry.
|
Static Analysis Check (8)
Docker pull failed with exit code 1, back off 3.082 seconds before retry.
|
Static Analysis Check (8)
Docker pull failed with exit code 1, back off 7.28 seconds before retry.
|
Static Analysis Check (8.3)
Docker pull failed with exit code 1, back off 2.68 seconds before retry.
|
Code Style (PSR-12)
Docker pull failed with exit code 1, back off 3.692 seconds before retry.
|
Static Analysis Check (8.3)
Docker pull failed with exit code 1, back off 3.061 seconds before retry.
|
Code Style (PSR-12)
Docker pull failed with exit code 1, back off 4.869 seconds before retry.
|
Unit Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, codecov/codecov-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Infection Check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L76
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L81
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+ $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, [], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L88
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+ $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, [], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L94
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+ $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, [], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L100
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+ $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, [], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/Controller/Composer/ComposerCommand.php#L106
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Dependency('php-di/php-di', '^6', 'DI\\ContainerBuilder::addDefinitions and the existence of the DI\\autowire function')]
protected function configure() : void
{
- $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, ['a'], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
+ $this->setName('why-block')->addArgument('package', InputArgument::REQUIRED, 'Package to inspect')->addArgument('version', InputArgument::REQUIRED, 'Version you want to update it to')->addOption(self::OUTPUT_FORMAT, ['f'], InputOption::VALUE_OPTIONAL, 'Format to output results in. Accepted values: text, csv, json, xml', 'text')->addOption(self::FAIL_ON_ERROR, ['e'], InputOption::VALUE_NONE, 'Immediately fail on parsing errors')->addOption(self::LEGACY_ANNOTATION, ['l'], InputOption::VALUE_NONE, 'Include old @dependency/@composerDependency annotations in search')->addOption(self::ROOT_DEPS, ['r'], InputOption::VALUE_NONE, 'Search root dependencies for the @dependency annotation')->addOption(self::ALL_DEPS, [], InputOption::VALUE_NONE, 'Search all dependencies for the @dependency annotation');
}
#[Dependency('symfony/console', '^5', 'InputInterface::getOption and OutputInterface::writeln')]
protected function execute(InputInterface $input, OutputInterface $output) : int
|
Infection Check:
src/DeclaredDependencyAggregator.php#L50
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
#[Pure]
public function aggregate() : array
{
- $dependencies = [[]];
+ $dependencies = [];
$files = $this->scopeDeterminer->getFiles();
foreach ($files as $file) {
$contents = @file_get_contents($file);
|
Infection Check:
src/DeclaredDependencyAggregator.php#L56
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$contents = @file_get_contents($file);
if ($contents === false) {
$this->handleIssue("Could not read from file '{$file}'");
- continue;
+ break;
}
$dependencies[] = array_map(function (DeclaredDependency $dependency) use($file) {
return $this->referenceAdder->add($dependency, $file);
|
Infection Check:
src/Factory/CollectingFactory.php#L37
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function create() : Collecting
{
$result = $this->container->make(Collecting::class);
- if (!$result instanceof Collecting) {
+ if (!true) {
throw new RuntimeException('Container did not return a Collecting');
}
return $result;
}
}
|
Infection Check:
src/Factory/FindingVisitorFactory.php#L38
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
public function create(array $args = []) : FindingVisitor
{
$result = $this->container->make(FindingVisitor::class, $args);
- if (!$result instanceof FindingVisitor) {
+ if (!true) {
throw new RuntimeException('Container did not return a FindingVisitor');
}
return $result;
}
}
|