composer(deps-dev): update phpstan/phpstan requirement #508
Annotations
10 warnings
Run mutation tests with infection/infection:
src/ConfigProvider.php#L53
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getServiceConfig() : array
{
- return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => [MinifyInterface::class => Minify::class]];
+ return ['factories' => [], 'aliases' => [MinifyInterface::class => Minify::class]];
}
/**
* Get view helper configuration
|
Run mutation tests with infection/infection:
src/ConfigProvider.php#L56
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getServiceConfig() : array
{
- return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => [MinifyInterface::class => Minify::class]];
+ return ['factories' => [Minify::class => MinifyFactory::class], 'aliases' => []];
}
/**
* Get view helper configuration
|
Run mutation tests with infection/infection:
src/ConfigProvider.php#L73
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getViewHelperConfig() : array
{
- return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]];
+ return ['aliases' => ['revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]];
}
}
|
Run mutation tests with infection/infection:
src/ConfigProvider.php#L79
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getViewHelperConfig() : array
{
- return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [BaseUrl::class => BaseUrlFactory::class, RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]];
+ return ['aliases' => ['baseUrl' => BaseUrl::class, 'revisionHeadLink' => RevisionHeadLink::class, 'revisionInlineScript' => RevisionInlineScript::class, 'revisionHeadScript' => RevisionHeadScript::class], 'factories' => [RevisionHeadLink::class => RevisionHeadLinkFactory::class, RevisionInlineScript::class => RevisionInlineScriptFactory::class, RevisionHeadScript::class => RevisionHeadScriptFactory::class]];
}
}
|
Run mutation tests with infection/infection:
src/Minify.php#L65
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*/
private array $packageSet = [];
/** @throws JsonException */
- public function __construct(string|null $groupsFile, private readonly string|null $publicDir = null, private readonly string|null $revision = null, private readonly bool $enabled = false)
+ public function __construct(string|null $groupsFile, private readonly string|null $publicDir = null, private readonly string|null $revision = null, private readonly bool $enabled = true)
{
if ($groupsFile === null) {
return;
|
Run mutation tests with infection/infection:
src/Minify.php#L77
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
if ($content === false) {
return;
}
- $decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($content, true, 511, JSON_THROW_ON_ERROR);
assert(is_array($decoded));
if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) {
$this->groups = $decoded['assets'];
|
Run mutation tests with infection/infection:
src/Minify.php#L77
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if ($content === false) {
return;
}
- $decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
+ $decoded = json_decode($content, true, 513, JSON_THROW_ON_ERROR);
assert(is_array($decoded));
if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) {
$this->groups = $decoded['assets'];
|
Run mutation tests with infection/infection:
src/Minify.php#L80
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
}
$decoded = json_decode($content, true, 512, JSON_THROW_ON_ERROR);
assert(is_array($decoded));
- if (array_key_exists('assets', $decoded) && is_array($decoded['assets'])) {
+ if (array_key_exists('assets', $decoded) || is_array($decoded['assets'])) {
$this->groups = $decoded['assets'];
}
}
|
Run mutation tests with infection/infection:
src/Minify.php#L115
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
return ['files' => [], 'attr' => []];
}
$group = $this->groups[$package];
- if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/' . $group['fileName'])) {
+ if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/')) {
return ['files' => ['/js/min/' . $group['fileName']], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []];
}
$this->packageSet = [$package];
|
Run mutation tests with infection/infection:
src/Minify.php#L118
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
$group = $this->groups[$package];
if ($this->enabled && $this->publicDir !== null && file_exists($this->publicDir . '/js/min/' . $group['fileName'])) {
- return ['files' => ['/js/min/' . $group['fileName']], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []];
+ return ['files' => [$group['fileName'] . '/js/min/'], 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []];
}
$this->packageSet = [$package];
return ['files' => $this->expandSubpackages($group['input']), 'attr' => isset($group['attr']) && is_array($group['attr']) ? $group['attr'] : []];
|
Loading