Skip to content

Commit

Permalink
Prevent access to uninitialized property
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag committed Apr 22, 2024
1 parent b17ba1f commit 19817a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
final class User implements UserEntityInterface
{
use EntityTrait;

public function __construct()
{
$this->identifier = '';
}
}

0 comments on commit 19817a6

Please sign in to comment.