Skip to content

- detect deprecations in PHPUnit, #68

- detect deprecations in PHPUnit,

- detect deprecations in PHPUnit, #68

Triggered via push December 15, 2024 21:57
Status Success
Total duration 4m 5s
Artifacts

test.yaml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 67 warnings
test (8.4, ubuntu-latest, true)
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.
test (8.4, ubuntu-latest, true)
Process completed with exit code 2.
test (8.5, ubuntu-latest, true)
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.5.0-dev) 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.5.0-dev) does not satisfy that requirement.
test (8.5, ubuntu-latest, true)
Process completed with exit code 2.
test (8.0, ubuntu-latest, false)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.0, ubuntu-latest, false): src/Event/FilterShortcodesEvent.php#L27
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.0, ubuntu-latest, false): src/Event/ReplaceShortcodesEvent.php#L32
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.0, ubuntu-latest, false): 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;
test (8.0, ubuntu-latest, false): 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();
test (8.0, ubuntu-latest, false): 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); }); } }
test (8.0, ubuntu-latest, false): 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>'; } }
test (8.0, ubuntu-latest, false): 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>'; } }
test (8.0, ubuntu-latest, false): 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()); } }
test (8.0, ubuntu-latest, false): 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()); } }
test (8.0, ubuntu-latest, false): 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>'; } }
test (7.4, ubuntu-latest, false)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.4, ubuntu-latest, true)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.4, ubuntu-latest, true): 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;
test (8.4, ubuntu-latest, true): 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;
test (8.4, ubuntu-latest, true): 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;
test (8.4, ubuntu-latest, true): 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();
test (8.4, ubuntu-latest, true): 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); }); } }
test (8.4, ubuntu-latest, true): 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>'; } }
test (8.4, ubuntu-latest, true): 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>'; } }
test (8.4, ubuntu-latest, true): 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()); } }
test (8.4, ubuntu-latest, true): 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()); } }
test (8.4, ubuntu-latest, true): 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>'; } }
test (8.5, ubuntu-latest, true)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.5, ubuntu-latest, true): 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;
test (8.5, ubuntu-latest, true): 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;
test (8.5, ubuntu-latest, true): 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;
test (8.5, ubuntu-latest, true): 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();
test (8.5, ubuntu-latest, true): 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); }); } }
test (8.5, ubuntu-latest, true): 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>'; } }
test (8.5, ubuntu-latest, true): 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>'; } }
test (8.5, ubuntu-latest, true): 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()); } }
test (8.5, ubuntu-latest, true): 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()); } }
test (8.5, ubuntu-latest, true): 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>'; } }
test (8.2, ubuntu-latest, false)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.2, ubuntu-latest, false): src/Event/FilterShortcodesEvent.php#L27
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.2, ubuntu-latest, false): src/Event/ReplaceShortcodesEvent.php#L32
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.2, ubuntu-latest, false): 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;
test (8.2, ubuntu-latest, false): 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();
test (8.2, ubuntu-latest, false): 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); }); } }
test (8.2, ubuntu-latest, false): 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>'; } }
test (8.2, ubuntu-latest, false): 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>'; } }
test (8.2, ubuntu-latest, false): 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()); } }
test (8.2, ubuntu-latest, false): 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()); } }
test (8.2, ubuntu-latest, false): 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>'; } }
test (8.3, ubuntu-latest, false)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.3, ubuntu-latest, false): src/Event/FilterShortcodesEvent.php#L27
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.3, ubuntu-latest, false): src/Event/ReplaceShortcodesEvent.php#L32
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.3, ubuntu-latest, false): 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;
test (8.3, ubuntu-latest, false): 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();
test (8.3, ubuntu-latest, false): 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); }); } }
test (8.3, ubuntu-latest, false): 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>'; } }
test (8.3, ubuntu-latest, false): 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>'; } }
test (8.3, ubuntu-latest, false): 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()); } }
test (8.3, ubuntu-latest, false): 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()); } }
test (8.3, ubuntu-latest, false): 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>'; } }
test (8.1, ubuntu-latest, false)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test (8.1, ubuntu-latest, false): src/Event/FilterShortcodesEvent.php#L27
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.1, ubuntu-latest, false): src/Event/ReplaceShortcodesEvent.php#L32
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ 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;
test (8.1, ubuntu-latest, false): 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;
test (8.1, ubuntu-latest, false): 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();
test (8.1, ubuntu-latest, false): 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); }); } }
test (8.1, ubuntu-latest, false): 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>'; } }
test (8.1, ubuntu-latest, false): 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>'; } }
test (8.1, ubuntu-latest, false): 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()); } }
test (8.1, ubuntu-latest, false): 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()); } }
test (8.1, ubuntu-latest, false): 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>'; } }