Add upgrade instructions #600
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run roave infection.:
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;
|
Run roave infection.:
src/AssetManager.php#L319
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
foreach ($this->allowedBundleNames as $name) {
$this->registerAssetBundle($name);
- $this->registerFiles($name);
+
}
}
/**
|
Run roave infection.:
src/AssetManager.php#L391
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#L457
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#L489
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#L276
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)) {
|
Run roave infection.:
src/AssetPublisher.php#L276
Escaped Mutant for Mutator "LogicalOr":
--- 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)) {
|
Run roave infection.:
src/AssetPublisher.php#L276
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- 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)) {
|
Run roave infection.:
src/AssetPublisher.php#L277
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)) {
|
Run roave infection.:
src/AssetPublisher.php#L277
Escaped Mutant for Mutator "LogicalAnd":
--- 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)) {
|
Loading