Lock file maintenance #4191
continuous-integration.yml
on: push
Matrix: Check Backward Compatibility
Matrix: Run benchmarks
Matrix: Check Coding Standards
Matrix: Test Compatibility
Matrix: Check Demo Scripts
Matrix: Mutation tests
Matrix: PHPUnit tests
Matrix: Static Analysis by PHPStan
Matrix: Static Analysis by Psalm
Annotations
10 warnings
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionClass.php#L780
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function getConstantsConsideringAlreadyVisitedClasses(AlreadyVisitedClasses $alreadyVisitedClasses): array
{
if ($this->cachedConstants !== null) {
- return $this->cachedConstants;
+
}
$alreadyVisitedClasses->push($this->getName());
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionClass.php#L454
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private function getMethodsIndexedByLowercasedName(AlreadyVisitedClasses $alreadyVisitedClasses): array
{
if ($this->cachedMethods !== null) {
- return $this->cachedMethods;
+
}
$alreadyVisitedClasses->push($this->getName());
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionClass.php#L406
Escaped Mutant for Mutator "Break_":
@@ @@
foreach ($traitAliasDefinitions as $traitAliasDefinition) {
if ($lowerCasedMethodHash === $traitAliasDefinition['hash']) {
$modifiersUsedWithAlias = true;
- break;
+ continue;
}
}
}
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/Adapter/ReflectionParameter.php#L147
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($typeReflection instanceof BetterReflectionIntersectionType) {
- return false;
+
}
$isOneOfAllowedTypes = static function (BetterReflectionType $namedType, string ...$types): bool {
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/Adapter/ReflectionParameter.php#L115
Escaped Mutant for Mutator "Break_":
@@ @@
}
$classType = $unionInnerType;
- break;
+ continue;
}
}
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/Adapter/ReflectionParameter.php#L98
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
$unionTypes = $type->getTypes();
if (count($unionTypes) !== 2) {
- return null;
+
}
if (! $type->allowsNull()) {
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/Adapter/ReflectionParameter.php#L89
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($type instanceof BetterReflectionIntersectionType) {
- return null;
+
}
if ($type instanceof BetterReflectionNamedType) {
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/NodeCompiler/CompilerContext.php#L67
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
}
if ($this->contextReflection instanceof ReflectionClassConstant) {
- return $this->contextReflection->getDeclaringClass();
+
}
if ($this->contextReflection instanceof ReflectionEnumCase) {
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
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
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
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;
|