Move config to di instead of di-web #547
Annotations
13 warnings
mutation / PHP 8.2-ubuntu-latest:
src/Debug/AssetCollector.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => []];
}
private function reset() : void
{
|
mutation / PHP 8.2-ubuntu-latest:
src/Debug/AssetCollector.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => []]];
}
private function reset() : void
{
|
mutation / PHP 8.2-ubuntu-latest:
src/Debug/AssetCollector.php#L42
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => ['total' > count($this->assetBundles)]]];
}
private function reset() : void
{
|
mutation / PHP 8.2-ubuntu-latest:
src/Exporter/JsonAssetExporter.php#L35
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
try {
$data = Json::encode(AssetUtil::extractFilePathsForExport($assetBundles));
} catch (JsonException $e) {
- throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 0, $e);
+ throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', -1, $e);
}
AssetUtil::exportToFile($this->targetFile, $data);
}
}
|
mutation / PHP 8.2-ubuntu-latest:
src/Exporter/JsonAssetExporter.php#L35
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
try {
$data = Json::encode(AssetUtil::extractFilePathsForExport($assetBundles));
} catch (JsonException $e) {
- throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 0, $e);
+ throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 1, $e);
}
AssetUtil::exportToFile($this->targetFile, $data);
}
}
|
mutation / PHP 8.1-ubuntu-latest:
src/AssetConverter.php#L83
Escaped Mutant for Mutator "UnwrapArrayMerge":
--- Original
+++ New
@@ @@
*/
public function __construct(private Aliases $aliases, private LoggerInterface $logger, array $commands = [], private bool $forceConvert = false)
{
- $this->commands = array_merge($this->commands, $commands);
+ $this->commands = $commands;
}
public function convert(string $asset, string $basePath, array $optionsConverter = []) : string
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Debug/AssetCollector.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => []];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Debug/AssetCollector.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => []]];
}
private function reset() : void
{
|
mutation / PHP 8.1-ubuntu-latest:
src/Debug/AssetCollector.php#L42
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => ['total' > count($this->assetBundles)]]];
}
private function reset() : void
{
|
mutation / PHP 8.3-ubuntu-latest:
src/Debug/AssetCollector.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => []];
}
private function reset() : void
{
|
mutation / PHP 8.3-ubuntu-latest:
src/Debug/AssetCollector.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => []]];
}
private function reset() : void
{
|
mutation / PHP 8.3-ubuntu-latest:
src/Debug/AssetCollector.php#L42
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
if (!$this->isActive()) {
return [];
}
- return ['asset' => ['bundles' => ['total' => count($this->assetBundles)]]];
+ return ['asset' => ['bundles' => ['total' > count($this->assetBundles)]]];
}
private function reset() : void
{
|
mutation / PHP 8.3-ubuntu-latest:
src/Exporter/JsonAssetExporter.php#L35
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
try {
$data = Json::encode(AssetUtil::extractFilePathsForExport($assetBundles));
} catch (JsonException $e) {
- throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 0, $e);
+ throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 1, $e);
}
AssetUtil::exportToFile($this->targetFile, $data);
}
}
|