- detect deprecations in PHPUnit, #68
Annotations
2 errors and 11 warnings
Psalm
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires vimeo/psalm ^5.0 -> satisfiable by vimeo/psalm[5.0.0, ..., 5.26.1].
- vimeo/psalm[5.0.0, ..., 5.13.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 -> your php version (8.4.1) does not satisfy that requirement.
- vimeo/psalm[5.14.0, ..., 5.26.1] require php ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 -> your php version (8.4.1) does not satisfy that requirement.
|
Psalm
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Infection:
src/Event/FilterShortcodesEvent.php#L27
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
*/
public function __construct(array $shortcodes, $parent = null)
{
- if (null !== $parent && false === $parent instanceof ProcessedShortcode) {
+ if (null !== $parent && false === true) {
throw new \LogicException('Parameter $parent must be an instance of ProcessedShortcode.');
}
$this->parent = $parent;
|
Infection:
src/Event/ReplaceShortcodesEvent.php#L32
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
*/
public function __construct($text, array $replacements, $shortcode = null)
{
- if (null !== $shortcode && false === $shortcode instanceof ShortcodeInterface) {
+ if (null !== $shortcode && false === true) {
throw new \LogicException('Parameter $shortcode must be an instance of ShortcodeInterface.');
}
$this->shortcode = $shortcode;
|
Infection:
src/EventContainer/EventContainer.php#L30
Escaped Mutant for Mutator "LogicalNot":
@@ @@
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":
@@ @@
}
$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":
@@ @@
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":
@@ @@
{
$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":
@@ @@
{
$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":
@@ @@
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":
@@ @@
}, 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":
@@ @@
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>';
}
}
|
Loading