Update rector/rector requirement from ^0.18 to ^0.19 #540
Annotations
10 warnings
Run roave infection.:
src/AssetConverter.php#L81
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*
* @psalm-param array<string, array{0:string,1:string}> $commands
*/
- public function __construct(private Aliases $aliases, private LoggerInterface $logger, array $commands = [], private bool $forceConvert = false)
+ public function __construct(private Aliases $aliases, private LoggerInterface $logger, array $commands = [], private bool $forceConvert = true)
{
$this->commands = array_merge($this->commands, $commands);
}
|
Run roave infection.:
src/AssetConverter.php#L292
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
} else {
$this->logger->error("AssetConverter command '{$command}' failed with exit code {$status}:\nSTDOUT:\n{$stdout}\nSTDERR:\n{$stderr}", [__METHOD__]);
}
- return $status === 0;
+ return $status !== 0;
}
/**
* @psalm-param ConverterOptions $options
|
Run roave infection.:
src/AssetManager.php#L302
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
foreach ($this->allowedBundleNames as $name) {
$this->registerAssetBundle($name);
- $this->registerFiles($name);
+
}
}
/**
|
Run roave infection.:
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}\".");
}
}
|
Run roave infection.:
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.");
}
|
Run roave infection.:
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;
|
Run roave infection.:
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
|
Run roave infection.:
src/AssetPublisher.php#L65
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 = false, private bool $linkAssets = true)
{
}
public function publish(AssetBundle $bundle) : array
|
Run roave infection.:
src/AssetPublisher.php#L270
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
symlink($src, $dstDir);
} catch (Exception $e) {
if (!is_dir($dstDir)) {
- throw $e;
+ $e;
}
}
}
|
Run roave infection.:
src/AssetPublisher.php#L275
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
}
}
}
- } elseif (!empty($bundle->publishOptions['forceCopy']) || $this->forceCopy && !isset($bundle->publishOptions['forceCopy']) || !is_dir($dstDir)) {
+ } elseif (empty($bundle->publishOptions['forceCopy']) || $this->forceCopy && !isset($bundle->publishOptions['forceCopy']) || !is_dir($dstDir)) {
$publishOptions = ['dirMode' => $this->dirMode, 'fileMode' => $this->fileMode, 'copyEmptyDirectories' => false];
foreach (['afterCopy', 'beforeCopy', 'filter', 'recursive'] as $key) {
if (array_key_exists($key, $bundle->publishOptions)) {
|
The logs for this run have expired and are no longer available.
Loading