Skip to content

Commit dfc4e5a

Browse files
fain182claude
andcommitted
Add @var class-string assertion inside getFQCN() to satisfy Psalm
Psalm requires the returned value to be explicitly typed as class-string inside the method body, since toString() is inferred as plain string. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 2db2acc commit dfc4e5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Analyzer/ClassDescription.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public function getName(): string
9797
/** @return class-string */
9898
public function getFQCN(): string
9999
{
100-
return $this->FQCN->toString();
100+
/** @var class-string $fqcn */
101+
$fqcn = $this->FQCN->toString();
102+
103+
return $fqcn;
101104
}
102105

103106
public function getFilePath(): string

0 commit comments

Comments
 (0)