diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 50dcc159a..ebbe9d5a5 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -152,9 +152,6 @@ - - - diff --git a/src/Reflection/ReflectionFunction.php b/src/Reflection/ReflectionFunction.php index 425f2d0cf..c61983ec5 100644 --- a/src/Reflection/ReflectionFunction.php +++ b/src/Reflection/ReflectionFunction.php @@ -29,6 +29,9 @@ class ReflectionFunction implements Reflection private bool $isStatic; + /** + * @param non-empty-string|null $namespace + */ private function __construct( private Reflector $reflector, Node\Stmt\ClassMethod|Node\Stmt\Function_|Node\Expr\Closure|Node\Expr\ArrowFunction $node, @@ -76,7 +79,11 @@ public function __toString(): string return ReflectionFunctionStringCast::toString($this); } - /** @internal */ + /** + * @internal + * + * @param non-empty-string|null $namespace + */ public static function createFromNode( Reflector $reflector, Node\Stmt\Function_|Node\Expr\Closure|Node\Expr\ArrowFunction $node, diff --git a/src/Reflection/ReflectionMethod.php b/src/Reflection/ReflectionMethod.php index 69b82b4a8..93e8087fa 100644 --- a/src/Reflection/ReflectionMethod.php +++ b/src/Reflection/ReflectionMethod.php @@ -33,7 +33,10 @@ class ReflectionMethod /** @var int-mask-of */ private int $modifiers; - /** @param non-empty-string|null $aliasName */ + /** + * @param non-empty-string|null $aliasName + * @param non-empty-string|null $namespace + */ private function __construct( private Reflector $reflector, MethodNode|Node\Stmt\Function_|Node\Expr\Closure|Node\Expr\ArrowFunction $node, @@ -59,6 +62,7 @@ private function __construct( * @internal * * @param non-empty-string|null $aliasName + * @param non-empty-string|null $namespace */ public static function createFromNode( Reflector $reflector,