From 19817a69dcfcb9b6198379c9df1240fb630f8766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20J=2E=20Garc=C3=ADa=20Lagar?= Date: Mon, 22 Apr 2024 10:32:39 +0200 Subject: [PATCH] Prevent access to uninitialized property --- src/Entity/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Entity/User.php b/src/Entity/User.php index 25b9f4dd..867cbf7d 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -10,4 +10,9 @@ final class User implements UserEntityInterface { use EntityTrait; + + public function __construct() + { + $this->identifier = ''; + } }