Lock file maintenance #3992
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/StringCast/ReflectionFunctionStringCast.php#L62
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private static function fileAndLinesToString(ReflectionFunction $functionReflection): string
{
if ($functionReflection->isInternal()) {
- return '';
+
}
$fileName = $functionReflection->getFileName();
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/StringCast/ReflectionConstantStringCast.php#L59
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private static function fileAndLinesToString(ReflectionConstant $constantReflection): string
{
if ($constantReflection->isInternal()) {
- return '';
+
}
$fileName = $constantReflection->getFileName();
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/StringCast/ReflectionClassStringCast.php#L140
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
private static function fileAndLinesToString(ReflectionClass $classReflection): string
{
if ($classReflection->isInternal()) {
- return '';
+
}
$fileName = $classReflection->getFileName();
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionFunctionAbstract.php#L517
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
@@ @@
return null;
}
- assert($returnType instanceof Node\Identifier || $returnType instanceof Node\Name || $returnType instanceof Node\NullableType || $returnType instanceof Node\UnionType || $returnType instanceof Node\IntersectionType);
+ assert(!$returnType instanceof Node\Identifier || !$returnType instanceof Node\Name || !$returnType instanceof Node\NullableType || !$returnType instanceof Node\UnionType || !$returnType instanceof Node\IntersectionType);
return ReflectionType::createFromNode($this->reflector, $this, $returnType);
}
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionFunctionAbstract.php#L494
Escaped Mutant for Mutator "ReturnRemoval":
@@ @@
public function hasTentativeReturnType(): bool
{
if ($this->isUserDefined()) {
- return false;
+
}
return AnnotationHelper::hasTentativeReturnType($this->docComment);
|
|
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#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
|