Skip to content

Update rector/rector requirement from ^0.18 to ^0.19 (#134) #544

Update rector/rector requirement from ^0.18 to ^0.19 (#134)

Update rector/rector requirement from ^0.18 to ^0.19 (#134) #544

Triggered via push January 10, 2024 08:56
Status Success
Total duration 2m 35s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
mutation / PHP 8.1-ubuntu-latest: src/AssetLoader.php#L93
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ if (!is_file($path)) { throw new InvalidConfigException("Asset files not found: \"{$path}\"."); } - if ($this->appendTimestamp && ($timestamp = FileHelper::lastModifiedTime($path)) > 0) { + if ($this->appendTimestamp && ($timestamp = FileHelper::lastModifiedTime($path)) >= 0) { return "{$url}?v={$timestamp}"; } return $url;
mutation / PHP 8.1-ubuntu-latest: src/AssetLoader.php#L111
Escaped Mutant for Mutator "UnwrapArrayMerge": --- Original +++ New @@ @@ $bundle->sourcePath = $bundle->sourcePath === null ? null : $this->aliases->get($bundle->sourcePath); $bundle->cssOptions = array_merge($bundle->cssOptions, $this->cssDefaultOptions); $bundle->cssPosition ??= $this->cssDefaultPosition; - $bundle->jsOptions = array_merge($bundle->jsOptions, $this->jsDefaultOptions); + $bundle->jsOptions = $bundle->jsOptions; $bundle->jsPosition ??= $this->jsDefaultPosition; return $bundle; }
mutation / PHP 8.1-ubuntu-latest: src/AssetManager.php#L302
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } foreach ($this->allowedBundleNames as $name) { $this->registerAssetBundle($name); - $this->registerFiles($name); + } } /**
mutation / PHP 8.1-ubuntu-latest: src/AssetManager.php#L374
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ if ($cssPosition !== null) { if ($bundle->cssPosition === null) { $bundle->cssPosition = $cssPosition; - } elseif ($bundle->cssPosition > $cssPosition) { + } elseif ($bundle->cssPosition >= $cssPosition) { throw new RuntimeException("An asset bundle that depends on \"{$name}\" has a higher CSS file " . "position configured than \"{$name}\"."); } }
mutation / PHP 8.1-ubuntu-latest: src/AssetManager.php#L440
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ /** @psalm-suppress RedundantConditionGivenDocblockType */ if ($this->customizedBundles[$name] === false) { /** @psalm-suppress MixedArgumentTypeCoercion */ - return $this->dummyBundles[$name] ??= $this->loader->loadBundle($name, (array) new AssetBundle()); + return $this->dummyBundles[$name] = $this->loader->loadBundle($name, (array) new AssetBundle()); } throw new InvalidConfigException("Invalid configuration of the \"{$name}\" asset bundle."); }
mutation / PHP 8.1-ubuntu-latest: src/AssetManager.php#L472
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ * @throws InvalidConfigException For invalid asset bundle configuration. * @throws RuntimeException If The asset bundle name is not allowed. */ - public function checkAllowedBundleName(string $name) : void + protected function checkAllowedBundleName(string $name) : void { if (isset($this->loadedBundles[$name]) || in_array($name, $this->allowedBundleNames, true)) { return;
mutation / PHP 8.1-ubuntu-latest: src/AssetPublisher.php#L64
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ * directory. See {@see withForceCopy()}. * @param bool $linkAssets Whether to use symbolic link to publish asset files. See {@see withLinkAssets()}. */ - public function __construct(private Aliases $aliases, private bool $forceCopy = false, private bool $linkAssets = false) + public function __construct(private Aliases $aliases, private bool $forceCopy = true, private bool $linkAssets = false) { } public function publish(AssetBundle $bundle) : array
mutation / PHP 8.1-ubuntu-latest: src/AssetPublisher.php#L243
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $dirname = is_file($path) ? dirname($path) : $path; $iterator = new RecursiveDirectoryIterator($dirname, RecursiveDirectoryIterator::SKIP_DOTS); $path = $dirname . (string) FileHelper::lastModifiedTime($iterator) . iterator_count($iterator); - return sprintf('%x', crc32($path . '|' . $this->linkAssets)); + return sprintf('%x', crc32($path . $this->linkAssets . '|')); } /** * Publishes a bundle directory.
mutation / PHP 8.1-ubuntu-latest: src/AssetPublisher.php#L243
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $dirname = is_file($path) ? dirname($path) : $path; $iterator = new RecursiveDirectoryIterator($dirname, RecursiveDirectoryIterator::SKIP_DOTS); $path = $dirname . (string) FileHelper::lastModifiedTime($iterator) . iterator_count($iterator); - return sprintf('%x', crc32($path . '|' . $this->linkAssets)); + return sprintf('%x', crc32($path . '|')); } /** * Publishes a bundle directory.
mutation / PHP 8.1-ubuntu-latest: src/AssetPublisher.php#L270
Escaped Mutant for Mutator "Throw_": --- Original +++ New @@ @@ symlink($src, $dstDir); } catch (Exception $e) { if (!is_dir($dstDir)) { - throw $e; + $e; } } }