Skip to content

Commit 78c378a

Browse files
committed
fix(entity): Move userId property initialization from constructor to property declaration
Signed-off-by: MikeCi <[email protected]>
1 parent 031413c commit 78c378a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Core/src/Security/src/Entity/OAuthAccessToken.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OAuthAccessToken implements AccessTokenEntityInterface
3636
private ClientEntityInterface $client;
3737

3838
#[ORM\Column(name: 'user_id', type: 'string', length: 25, nullable: true)]
39-
private ?string $userId;
39+
private ?string $userId = null;
4040

4141
/** @var non-empty-string $token */
4242
#[ORM\Column(name: 'token', type: 'string', length: 100)]
@@ -62,7 +62,6 @@ class OAuthAccessToken implements AccessTokenEntityInterface
6262
public function __construct()
6363
{
6464
$this->scopes = new ArrayCollection();
65-
$this->userId = null;
6665
}
6766

6867
public function setId(int $id): self

0 commit comments

Comments
 (0)