Support PHP 8.4 #63
Annotations
11 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Infection:
src/EventContainer/EventContainer.php#L30
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
if (!\in_array($event, Events::getEvents(), true)) {
throw new \InvalidArgumentException(sprintf('Unsupported event %s!', $event));
}
- if (!array_key_exists($event, $this->listeners)) {
+ if (array_key_exists($event, $this->listeners)) {
$this->listeners[$event] = array();
}
$this->listeners[$event][] = $handler;
|
Infection:
src/Handler/DeclareHandler.php#L38
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
$keys = array_keys($args);
$name = array_shift($keys);
- $content = (string) $shortcode->getContent();
+ $content = $shortcode->getContent();
$delimiter = $this->delimiter;
$this->handlers->add($name, function (ShortcodeInterface $shortcode) use($content, $delimiter) {
$args = $shortcode->getParameters();
|
Infection:
src/Handler/DeclareHandler.php#L45
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
return $delimiter . $key . $delimiter;
}, array_keys($args));
/** @var string[] $values */
- $values = array_values($args);
+ $values = $args;
return str_replace($keys, $values, $content);
});
}
}
|
Infection:
src/Handler/EmailHandler.php#L25
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
$email = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
$content = $shortcode->getContent() === null ? $email : $shortcode->getContent();
- return '<a href="mailto:' . (string) $email . '">' . (string) $content . '</a>';
+ return '<a href="mailto:' . $email . '">' . (string) $content . '</a>';
}
}
|
Infection:
src/Handler/EmailHandler.php#L25
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
{
$email = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
$content = $shortcode->getContent() === null ? $email : $shortcode->getContent();
- return '<a href="mailto:' . (string) $email . '">' . (string) $content . '</a>';
+ return '<a href="mailto:' . (string) $email . '">' . $content . '</a>';
}
}
|
Infection:
src/Handler/PlaceholderHandler.php#L33
Escaped Mutant for Mutator "UnwrapArrayValues":
--- Original
+++ New
@@ @@
return $delimiter . $key . $delimiter;
}, array_keys($args));
/** @var string[] $values */
- $values = array_values($args);
+ $values = $args;
return str_replace($keys, $values, (string) $shortcode->getContent());
}
}
|
Infection:
src/Handler/PlaceholderHandler.php#L35
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}, array_keys($args));
/** @var string[] $values */
$values = array_values($args);
- return str_replace($keys, $values, (string) $shortcode->getContent());
+ return str_replace($keys, $values, $shortcode->getContent());
}
}
|
Infection:
src/Handler/UrlHandler.php#L24
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function __invoke(ShortcodeInterface $shortcode)
{
$url = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
- return '<a href="' . (string) $url . '">' . (string) $shortcode->getContent() . '</a>';
+ return '<a href="' . $url . '">' . (string) $shortcode->getContent() . '</a>';
}
}
|
Infection:
src/Handler/UrlHandler.php#L24
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function __invoke(ShortcodeInterface $shortcode)
{
$url = null !== $shortcode->getBbCode() ? $shortcode->getBbCode() : $shortcode->getContent();
- return '<a href="' . (string) $url . '">' . (string) $shortcode->getContent() . '</a>';
+ return '<a href="' . (string) $url . '">' . $shortcode->getContent() . '</a>';
}
}
|
Infection:
src/Handler/WrapHandler.php#L42
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
public function __invoke(ShortcodeInterface $shortcode)
{
- return $this->before . (string) $shortcode->getContent() . $this->after;
+ return $this->before . $shortcode->getContent() . $this->after;
}
}
|
Loading