CI #1498
Annotations
33 warnings
|
PHP 8.4
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP 8.4:
src/MockClassBuilder.php#L61
Escaped Mutant for Mutator "Concat":
@@ @@
$methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
}
- $class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
+ $class = PHP_EOL . "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {";
$class .= implode(PHP_EOL, $methods).PHP_EOL;
$class .= '}';
|
|
PHP 8.4:
src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
- $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
+ $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod);
}
$class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
|
|
PHP 8.4:
src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "Concat":
@@ @@
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
- $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
+ $methods[] = PHP_EOL . $this->mockMethod($reflectionClasses, $reflectionMethod);
}
$class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
|
|
PHP 8.4:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ 'public function __destruct() { }',
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.4:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ PHP_EOL,
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.4:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "Concat":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ PHP_EOL . 'public function __destruct() { }',
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.4:
src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends';
$methods = [
- 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
+ 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }',
'public function __destruct() { }'.PHP_EOL,
];
|
|
PHP 8.4:
src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "Concat":
@@ @@
$implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends';
$methods = [
- 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
+ PHP_EOL . 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }',
'public function __destruct() { }'.PHP_EOL,
];
|
|
PHP 8.4:
src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue":
@@ @@
return '(recursion)';
}
- $splObjectHashes[$splObjectHash] = true;
+ $splObjectHashes[$splObjectHash] = false;
if ($value instanceof \Throwable) {
return $this->getThrowableData($value);
|
|
PHP 8.4:
src/Exceptions/AbstractMock.php#L17
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
final protected function getData(mixed $value, array &$splObjectHashes = []): mixed
{
if (\is_array($value)) {
- return $this->getArrayData($value, $splObjectHashes);
+
}
if (\is_object($value)) {
|
|
PHP 8.3
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP 8.3:
src/MockClassBuilder.php#L61
Escaped Mutant for Mutator "Concat":
@@ @@
$methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
}
- $class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
+ $class = PHP_EOL . "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {";
$class .= implode(PHP_EOL, $methods).PHP_EOL;
$class .= '}';
|
|
PHP 8.3:
src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
- $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
+ $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod);
}
$class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
|
|
PHP 8.3:
src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "Concat":
@@ @@
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
- $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod).PHP_EOL;
+ $methods[] = PHP_EOL . $this->mockMethod($reflectionClasses, $reflectionMethod);
}
$class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {".PHP_EOL;
|
|
PHP 8.3:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ 'public function __destruct() { }',
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.3:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ PHP_EOL,
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.3:
src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "Concat":
@@ @@
$methods = [
'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
- 'public function __destruct() { }'.PHP_EOL,
+ PHP_EOL . 'public function __destruct() { }',
];
foreach ($reflectionClass->getMethods() as $reflectionMethod) {
|
|
PHP 8.3:
src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends';
$methods = [
- 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
+ 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }',
'public function __destruct() { }'.PHP_EOL,
];
|
|
PHP 8.3:
src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "Concat":
@@ @@
$implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends';
$methods = [
- 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }'.PHP_EOL,
+ PHP_EOL . 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }',
'public function __destruct() { }'.PHP_EOL,
];
|
|
PHP 8.3:
src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue":
@@ @@
return '(recursion)';
}
- $splObjectHashes[$splObjectHash] = true;
+ $splObjectHashes[$splObjectHash] = false;
if ($value instanceof \Throwable) {
return $this->getThrowableData($value);
|
|
PHP 8.3:
src/Exceptions/AbstractMock.php#L17
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
final protected function getData(mixed $value, array &$splObjectHashes = []): mixed
{
if (\is_array($value)) {
- return $this->getArrayData($value, $splObjectHashes);
+
}
if (\is_object($value)) {
|
|
PHP 8.5
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, sonarsource/sonarqube-scan-action@v6.0.0. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
PHP 8.5:
src/MockClassBuilder.php#L152
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$visibility = $reflectionMethod->isProtected() ? 'protected' : 'public';
$returnsReference = $reflectionMethod->returnsReference() ? '&' : '';
- $method = $visibility.' function '.$returnsReference.$methodName.'('.$parameters.')';
+ $method = ' function '.$returnsReference.$methodName.'('.$parameters.')';
$returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
|
|
PHP 8.5:
src/MockClassBuilder.php#L127
Escaped Mutant for Mutator "Coalesce":
@@ @@
$method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
- $returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
+ $returnType = (string) ($reflectionMethod->getTentativeReturnType() ?? $reflectionMethod->getReturnType());
if ($returnType) {
$method .= ': '.$this->replaceSelfWithOriginalClassInType($reflectionClasses, $reflectionMethod->getName(), $returnType);
|
|
PHP 8.5:
src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "Concat":
@@ @@
$visibility = $reflectionMethod->isProtected() ? 'protected' : 'public';
$returnsReference = $reflectionMethod->returnsReference() ? '&' : '';
- $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
+ $method = $visibility.' static function ' . $methodName . $returnsReference.'('.$parameters.')';
$returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
|
|
PHP 8.5:
src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$visibility = $reflectionMethod->isProtected() ? 'protected' : 'public';
$returnsReference = $reflectionMethod->returnsReference() ? '&' : '';
- $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
+ $method = $visibility.' static function '.$methodName.'('.$parameters.')';
$returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
|
|
PHP 8.5:
src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "Concat":
@@ @@
$visibility = $reflectionMethod->isProtected() ? 'protected' : 'public';
$returnsReference = $reflectionMethod->returnsReference() ? '&' : '';
- $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
+ $method = $visibility . $returnsReference . ' static function '.$methodName.'('.$parameters.')';
$returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
|
|
PHP 8.5:
src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
$visibility = $reflectionMethod->isProtected() ? 'protected' : 'public';
$returnsReference = $reflectionMethod->returnsReference() ? '&' : '';
- $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
+ $method = ' static function '.$returnsReference.$methodName.'('.$parameters.')';
$returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
|
|
PHP 8.5:
src/MockClassBuilder.php#L96
Escaped Mutant for Mutator "LogicalOr":
@@ @@
\ReflectionMethod $reflectionMethod
): string {
if (
- $reflectionMethod->isPrivate()
- || ($reflectionMethod->isProtected() && !$reflectionMethod->isAbstract())
+ $reflectionMethod->isPrivate() && $reflectionMethod->isProtected() && !$reflectionMethod->isAbstract()
|| $reflectionMethod->isConstructor()
|| $reflectionMethod->isDestructor()
) {
|
|
PHP 8.5:
src/MockClassBuilder.php#L76
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private static function resolveReflectionClasses(\ReflectionClass $reflectionClass): array
{
if ($reflectionClass->isInterface()) {
- return [$reflectionClass];
+
}
$reflectionClasses = [];
|
|
PHP 8.5:
src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue":
@@ @@
return '(recursion)';
}
- $splObjectHashes[$splObjectHash] = true;
+ $splObjectHashes[$splObjectHash] = false;
if ($value instanceof \Throwable) {
return $this->getThrowableData($value);
|
|
PHP 8.5:
src/Exceptions/AbstractMock.php#L17
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
final protected function getData(mixed $value, array &$splObjectHashes = []): mixed
{
if (\is_array($value)) {
- return $this->getArrayData($value, $splObjectHashes);
+
}
if (\is_object($value)) {
|