Skip to content

Commit

Permalink
Fixed PhpStan issue findinf user var type
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-eugone committed Nov 1, 2021
1 parent c4df7fa commit a43ecfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Manager/DoctrineUserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function get(string $class, string $id)
*/
public function getClass($user): string
{
/** @var object $user */
/** @var class-string $class */
$class = ClassUtils::getClass($user);

Expand Down

0 comments on commit a43ecfe

Please sign in to comment.