Skip to content

fix(docs): Clean up event documentation in FoxyEvents class. #75

fix(docs): Clean up event documentation in FoxyEvents class.

fix(docs): Clean up event documentation in FoxyEvents class. #75

Triggered via pull request January 24, 2026 19:02
Status Success
Total duration 9m 39s
Artifacts 1

mutation.yml

on: pull_request
Matrix: mutation / infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L226
Escaped Mutant for Mutator "ProtectedVisibility": @@ @@ * * @psalm-param list<string> $names */ - protected function actionWhenComposerDependenciesAreAlreadyInstalled(array $names): void + private function actionWhenComposerDependenciesAreAlreadyInstalled(array $names): void { // do nothing by default }
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L168
Escaped Mutant for Mutator "LogicalAnd": @@ @@ $this->fallback->restore(); } } finally { - if ($changedDir && null !== $originalDir && chdir($originalDir) === false) { + if (($changedDir || null !== $originalDir) && chdir($originalDir) === false) { throw new RuntimeException( sprintf('Unable to restore working directory to "%s".', $originalDir), );
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L155
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ /** @var int $managerTimeout */ $managerTimeout = $this->config->get('manager-timeout', PHP_INT_MAX); - ProcessExecutor::setTimeout($managerTimeout); + try { $cmd = $updatable ? $this->getUpdateCommand() : $this->getInstallCommand();
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L149
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ try { $updatable = $this->isUpdatable(); $info = sprintf('<info>%s %s dependencies</info>', $updatable ? 'Updating' : 'Installing', $this->getName()); - $this->io->write($info); + $timeout = ProcessExecutor::getTimeout();
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L148
Escaped Mutant for Mutator "Ternary": @@ @@ try { $updatable = $this->isUpdatable(); - $info = sprintf('<info>%s %s dependencies</info>', $updatable ? 'Updating' : 'Installing', $this->getName()); + $info = sprintf('<info>%s %s dependencies</info>', $updatable ? 'Installing' : 'Updating', $this->getName()); $this->io->write($info); $timeout = ProcessExecutor::getTimeout();
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L119
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ public function run(): int { if (true !== $this->config->get('run-asset-manager')) { - return 0; + } $rootPackageDir = $this->config->get('root-package-json-dir');
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L103
Escaped Mutant for Mutator "LogicalAnd": @@ @@ public function isInstalled(): bool { - return is_dir($this->getNodeModulesPath()) && file_exists($this->getPackageJsonPath()); + return is_dir($this->getNodeModulesPath()) || file_exists($this->getPackageJsonPath()); } public function isUpdatable(): bool
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L76
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $alreadyInstalledDependencies = $assetPackage->addNewDependencies($dependencies); $this->actionWhenComposerDependenciesAreAlreadyInstalled($alreadyInstalledDependencies); - $this->io->write('<info>Merging Composer dependencies in the asset package</info>'); + return $assetPackage->write(); }
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L75
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $assetPackage->removeUnusedDependencies($dependencies); $alreadyInstalledDependencies = $assetPackage->addNewDependencies($dependencies); - $this->actionWhenComposerDependenciesAreAlreadyInstalled($alreadyInstalledDependencies); + $this->io->write('<info>Merging Composer dependencies in the asset package</info>'); return $assetPackage->write();
mutation / PHP 8.5-ubuntu-latest: src/Asset/AbstractAssetManager.php#L45
Escaped Mutant for Mutator "AssignCoalesce": @@ @@ protected FallbackInterface|null $fallback = null, protected VersionConverterInterface|null $versionConverter = null, ) { - $this->versionConverter ??= new SemverConverter(); + $this->versionConverter = new SemverConverter(); } /**

Artifacts

Produced during runtime
Name Size Digest
infection-permissions-a4656732784470cbfe4dc4ba1fa2a181
140 Bytes
sha256:0337792093abfcb39144c93e00c3b5191d1821fc41a577b052f60c9804a974ba