Skip to content

CI

CI #1640

Triggered via schedule August 17, 2026 00:53
Status Success
Total duration 1m 50s
Artifacts –

ci.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
PHP 8.3: src/MockClassBuilder.php#L174
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.3: src/MockClassBuilder.php#L174
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.3: src/MockClassBuilder.php#L174
Escaped Mutant for Mutator "Concat": @@ @@ $visibility = $reflectionMethod->isProtected() ? 'protected' : 'public'; $returnsReference = $reflectionMethod->returnsReference() ? '&' : ''; - $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')'; + $method = ' static function ' . $visibility.$returnsReference.$methodName.'('.$parameters.')'; $returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
PHP 8.3: src/MockClassBuilder.php#L172
Escaped Mutant for Mutator "Ternary": @@ @@ $methodName = $reflectionMethod->getName(); $visibility = $reflectionMethod->isProtected() ? 'protected' : 'public'; - $returnsReference = $reflectionMethod->returnsReference() ? '&' : ''; + $returnsReference = $reflectionMethod->returnsReference() ? '' : '&'; $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
PHP 8.3: src/MockClassBuilder.php#L145
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.3: src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private static function resolveReflectionClasses(\ReflectionClass $reflectionClass): array { if ($reflectionClass->isInterface()) { - return [$reflectionClass]; + } $reflectionClasses = [];
PHP 8.3: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ ]; if ($this->needsIteratorAggregate($reflectionClass) && !$reflectionClass->hasMethod('getIterator')) { - $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'.PHP_EOL; + $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'; } foreach ($reflectionClass->getMethods() as $reflectionMethod) {
PHP 8.3: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "Concat": @@ @@ ]; if ($this->needsIteratorAggregate($reflectionClass) && !$reflectionClass->hasMethod('getIterator')) { - $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'.PHP_EOL; + $methods[] = PHP_EOL . 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'; } foreach ($reflectionClass->getMethods() as $reflectionMethod) {
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.4: src/MockClassBuilder.php#L201
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.4: src/MockClassBuilder.php#L176
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.4: src/MockClassBuilder.php#L174
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.4: src/MockClassBuilder.php#L174
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.4: src/MockClassBuilder.php#L174
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.4: src/MockClassBuilder.php#L174
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.4: src/MockClassBuilder.php#L145
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.4: src/MockClassBuilder.php#L125
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private static function resolveReflectionClasses(\ReflectionClass $reflectionClass): array { if ($reflectionClass->isInterface()) { - return [$reflectionClass]; + } $reflectionClasses = [];
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.5: src/MockClassBuilder.php#L174
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#L174
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#L174
Escaped Mutant for Mutator "Concat": @@ @@ $visibility = $reflectionMethod->isProtected() ? 'protected' : 'public'; $returnsReference = $reflectionMethod->returnsReference() ? '&' : ''; - $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')'; + $method = ' static function ' . $visibility.$returnsReference.$methodName.'('.$parameters.')'; $returnType = (string) ($reflectionMethod->getReturnType() ?? $reflectionMethod->getTentativeReturnType());
PHP 8.5: src/MockClassBuilder.php#L172
Escaped Mutant for Mutator "Ternary": @@ @@ $methodName = $reflectionMethod->getName(); $visibility = $reflectionMethod->isProtected() ? 'protected' : 'public'; - $returnsReference = $reflectionMethod->returnsReference() ? '&' : ''; + $returnsReference = $reflectionMethod->returnsReference() ? '' : '&'; $method = $visibility.' static function '.$returnsReference.$methodName.'('.$parameters.')';
PHP 8.5: src/MockClassBuilder.php#L145
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#L125
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private static function resolveReflectionClasses(\ReflectionClass $reflectionClass): array { if ($reflectionClass->isInterface()) { - return [$reflectionClass]; + } $reflectionClasses = [];
PHP 8.5: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ ]; if ($this->needsIteratorAggregate($reflectionClass) && !$reflectionClass->hasMethod('getIterator')) { - $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'.PHP_EOL; + $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'; } foreach ($reflectionClass->getMethods() as $reflectionMethod) {
PHP 8.5: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "Concat": @@ @@ ]; if ($this->needsIteratorAggregate($reflectionClass) && !$reflectionClass->hasMethod('getIterator')) { - $methods[] = 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'.PHP_EOL; + $methods[] = PHP_EOL . 'public function getIterator(): \Traversable { return $this->mockMethods->mock($this, \'getIterator\', []); }'; } foreach ($reflectionClass->getMethods() as $reflectionMethod) {
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)) {