Skip to content

Commit 550220d

Browse files
mdeboerwouterj
authored andcommitted
Improve some PHPdocs based on existing Symfony stubs in PHPstan and Psalm
1 parent f33ef3c commit 550220d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Authenticator/Passport/Passport.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ public function hasBadge(string $badgeFqcn): bool
8080
return isset($this->badges[$badgeFqcn]);
8181
}
8282

83+
/**
84+
* @template TBadge of BadgeInterface
85+
*
86+
* @param class-string<TBadge> $badgeFqcn
87+
*
88+
* @return TBadge|null
89+
*/
8390
public function getBadge(string $badgeFqcn): ?BadgeInterface
8491
{
8592
return $this->badges[$badgeFqcn] ?? null;

0 commit comments

Comments
 (0)