fix codacy badge #5
Annotations
3 warnings
PHP 8.3 test on ubuntu-latest:
src/Breadcrumb.php#L76
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function withRemoved(int $pos) : BreadcrumbInterface
{
if (!array_key_exists($pos, $this->items)) {
- throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: (string) $pos));
+ throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: $pos));
}
$new = clone $this;
unset($new->items[$pos]);
|
PHP 8.1 test on ubuntu-latest:
src/Breadcrumb.php#L76
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function withRemoved(int $pos) : BreadcrumbInterface
{
if (!array_key_exists($pos, $this->items)) {
- throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: (string) $pos));
+ throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: $pos));
}
$new = clone $this;
unset($new->items[$pos]);
|
PHP 8.2 test on ubuntu-latest:
src/Breadcrumb.php#L76
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
public function withRemoved(int $pos) : BreadcrumbInterface
{
if (!array_key_exists($pos, $this->items)) {
- throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: (string) $pos));
+ throw new OutOfBoundsException((string) message('Pos `%pos%` not found', pos: $pos));
}
$new = clone $this;
unset($new->items[$pos]);
|