composer(deps-dev): update rector/rector requirement from ^1.2.8 to ^1.2.9 #1177
continuous-integration.yml
on: pull_request
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer with composer-normalize
Matrix: Validate Project / Check composer dependencies with composer-unused
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Matrix: Install Project / Install Node dependencies
Matrix: Install Project / Install PHP dependencies
Matrix: Project Analysis / Run eslint
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Check Rules with PHPMD
Matrix: Project Analysis / Run prettier
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Matrix: Project Analysis / Run stylelint
Matrix: UnitTests / Code Coverage with PHPUnit
Matrix: UnitTests / UnitTests with PHPUnit
Matrix: UnitTests / UnitTests with stryker
Matrix: UnitTests / UnitTests with vitest
Unit & Integration Tests Status
0s
Annotations
10 warnings
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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) {
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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)) {
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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();
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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) {
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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();
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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;
}
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
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];
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
src/ContainerTrait.php#L430
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function key() : string
{
- $this->sort();
+
return (string) key($this->index);
}
/**
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
src/ContainerTrait.php#L444
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function next() : void
{
- $this->sort();
+
next($this->index);
}
/**
|
UnitTests / Code Coverage with PHPUnit (ubuntu-24.04, 8.1, lowest):
src/ContainerTrait.php#L458
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
*/
public final function rewind() : void
{
- $this->sort();
+
reset($this->index);
}
/**
|