github-actions: bump codecov/codecov-action from 4.5.0 to 4.6.0 in the version-updates group #1156
Annotations
10 warnings
Run mutation tests with infection/infection:
src/ContainerTrait.php#L81
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public function __call(string $method, array $arguments) : mixed
{
- ErrorHandler::start(E_WARNING);
+
$result = preg_match('/(?P<function>find(?:One|All)By)(?P<property>.+)/', $method, $match);
$error = ErrorHandler::stop();
if (!$result) {
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L125
Escaped Mutant for Mutator "Throw_":
--- Original
+++ New
@@ @@
public final function addPage(PageInterface $page) : void
{
if ($page === $this) {
- throw new InvalidArgumentException('A page cannot have itself as a parent');
+ new InvalidArgumentException('A page cannot have itself as a parent');
}
$hash = $page->hashCode();
if (array_key_exists($hash, $this->index)) {
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L199
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*
* @throws void
*/
- public final function removePage(int|PageInterface $page, bool $recursive = false) : bool
+ public final function removePage(int|PageInterface $page, bool $recursive = true) : bool
{
if ($page instanceof PageInterface) {
$hash = $page->hashCode();
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L216
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
}
if (isset($this->pages[$hash])) {
unset($this->pages[$hash], $this->index[$hash]);
- $this->dirtyIndex = true;
+ $this->dirtyIndex = false;
return true;
}
if ($recursive) {
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L257
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
*
* @throws void
*/
- public final function hasPage(int|PageInterface $page, bool $recursive = false) : bool
+ public final function hasPage(int|PageInterface $page, bool $recursive = true) : bool
{
if ($page instanceof PageInterface) {
$hash = $page->hashCode();
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L359
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
foreach ($iterator as $page) {
assert($page instanceof PageInterface);
if ($page->get($property) !== $value) {
- continue;
+ break;
}
$found[] = $page;
}
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L410
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
$this->sort();
$hash = key($this->index);
- if ($hash === null || !isset($this->pages[$hash])) {
+ if ($hash === null && !isset($this->pages[$hash])) {
throw new OutOfBoundsException('Corruption detected in container; invalid key found in internal iterator');
}
return $this->pages[$hash];
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L430
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function key() : string
{
- $this->sort();
+
return (string) key($this->index);
}
/**
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L444
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function next() : void
{
- $this->sort();
+
next($this->index);
}
/**
|
Run mutation tests with infection/infection:
src/ContainerTrait.php#L458
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function rewind() : void
{
- $this->sort();
+
reset($this->index);
}
/**
|
Loading