Skip to content

Correct composer install commands #76

Correct composer install commands

Correct composer install commands #76

Re-run triggered December 21, 2023 16:38
Status Failure
Total duration 6s
Artifacts

commit.yml

on: push
Unit Tests
16s
Unit Tests
Code Style (PSR-12)
10s
Code Style (PSR-12)
Infection Check
24s
Infection Check
Matrix: Static Analysis Check
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 16 warnings
Static Analysis Check (8.1)
The job was canceled because "_8" failed.
Static Analysis Check (8)
Your requirements could not be resolved to an installable set of packages. Problem 1 - infection/infection[0.27.0, ..., 0.27.9] require php ^8.1 -> your php version (8.0.30) does not satisfy that requirement. - Root composer.json requires infection/infection ^0.27.0 -> satisfiable by infection/infection[0.27.0, ..., 0.27.9].
Static Analysis Check (8)
Process completed with exit code 2.
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; } }
Code Style (PSR-12)
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/
Static Analysis Check (8.3)
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/
Static Analysis Check (8.2)
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/
Static Analysis Check (8)
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/