Repository navigation
Annotations
10 warnings
|
Infection:
src/Reflection/ReflectionClass.php#L407
Escaped Mutant for Mutator "Break_":
@@ @@
foreach ($traitAliasDefinitions as $traitAliasDefinition) {
if ($lowerCasedMethodHash === $traitAliasDefinition['hash']) {
$modifiersUsedWithAlias = true;
- break;
+ continue;
}
}
}
|
|
Infection:
src/Reflection/ReflectionClass.php#L190
Escaped Mutant for Mutator "GreaterThan":
@@ @@
$startLine = $node->getStartLine();
assert($startLine > 0);
$endLine = $node->getEndLine();
- assert($endLine > 0);
+ assert($endLine >= 0);
$this->startLine = $startLine;
$this->endLine = $endLine;
|
|
Infection:
src/Reflection/ReflectionClass.php#L188
Escaped Mutant for Mutator "GreaterThan":
@@ @@
$this->attributes = ReflectionAttributeHelper::createAttributes($reflector, $this, $node->attrGroups);
$startLine = $node->getStartLine();
- assert($startLine > 0);
+ assert($startLine >= 0);
$endLine = $node->getEndLine();
assert($endLine > 0);
|
|
Infection:
src/Reflection/Adapter/ReflectionParameter.php#L156
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($typeReflection instanceof BetterReflectionIntersectionType) {
- return false;
+
}
$isOneOfAllowedTypes = static function (BetterReflectionType $namedType, string ...$types): bool {
|
|
Infection:
src/Reflection/Adapter/ReflectionParameter.php#L123
Escaped Mutant for Mutator "Break_":
@@ @@
}
$classType = $unionInnerType;
- break;
+ continue;
}
assert($classType !== null);
|
|
Infection:
src/Reflection/Adapter/ReflectionParameter.php#L104
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
$unionTypes = $type->getTypes();
if (count($unionTypes) !== 2) {
- return null;
+
}
if (! $type->allowsNull()) {
|
|
Infection:
src/Reflection/Adapter/ReflectionParameter.php#L95
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($type instanceof BetterReflectionIntersectionType) {
- return null;
+
}
if ($type instanceof BetterReflectionNamedType) {
|
|
Infection:
src/NodeCompiler/CompilerContext.php#L67
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($this->contextReflection instanceof ReflectionClassConstant) {
- return $this->contextReflection->getDeclaringClass();
+
}
if ($this->contextReflection instanceof ReflectionEnumCase) {
|
|
Infection:
src/NodeCompiler/CompilerContext.php#L35
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function getFileName(): string|null
{
if ($this->contextReflection instanceof ReflectionConstant) {
- return $this->contextReflection->getFileName();
+
}
// @infection-ignore-all Coalesce: There's no difference
|
|
Infection:
src/Identifier/Identifier.php#L27
Escaped Mutant for Mutator "LogicalOr":
@@ @@
{
if (
$name === self::WILDCARD
- || $name === ReflectionFunction::CLOSURE_NAME
- || str_starts_with($name, ReflectionClass::ANONYMOUS_CLASS_NAME_PREFIX)
+ || $name === ReflectionFunction::CLOSURE_NAME && str_starts_with($name, ReflectionClass::ANONYMOUS_CLASS_NAME_PREFIX)
) {
$this->name = $name;
|
background
wait
wait-all
cancel
parallel
Loading