diff --git a/src/PhpParserReflector/ContextualPhpParserReflector.php b/src/PhpParserReflector/ContextualPhpParserReflector.php index 251ad78..e8d6470 100644 --- a/src/PhpParserReflector/ContextualPhpParserReflector.php +++ b/src/PhpParserReflector/ContextualPhpParserReflector.php @@ -175,7 +175,11 @@ private function reflectClassModifiers(Stmt\ClassLike $node): int $modifiers = ($node->isAbstract() ? ClassReflection::IS_EXPLICIT_ABSTRACT : 0) + ($node->isFinal() ? ClassReflection::IS_FINAL : 0); - if (defined(\ReflectionClass::class.'::IS_READONLY') && $node->isReadonly()) { + if (\defined(\ReflectionClass::class . '::IS_READONLY') && $node->isReadonly()) { + /** + * @var int-mask-of<\ReflectionClass::IS_*> + * @psalm-suppress MixedOperand, UnusedPsalmSuppress + */ $modifiers += \ReflectionClass::IS_READONLY; }