Update laminas/automatic-releases digest to 98204e3 #4518
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/ReflectionClassConstant.php#L177
Escaped Mutant for Mutator "BitwiseAnd":
@@ @@
*/
public function isPublic(): bool
{
- return (bool) ($this->modifiers & CoreReflectionClassConstant::IS_PUBLIC);
+ return (bool) ($this->modifiers | CoreReflectionClassConstant::IS_PUBLIC);
}
/**
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionClassConstant.php#L76
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;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Reflection/ReflectionClassConstant.php#L74
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);
|
|
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;
|