From 0e2daec3ba9a1f2ae6420c7abaaf8384dfed8f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Wed, 18 Aug 2021 21:34:47 +0200 Subject: [PATCH] InjectDefault: Add void return type. --- src/User/Entity/CmsUser.php | 2 +- src/User/Entity/User.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/User/Entity/CmsUser.php b/src/User/Entity/CmsUser.php index 351a974..01933e0 100644 --- a/src/User/Entity/CmsUser.php +++ b/src/User/Entity/CmsUser.php @@ -14,7 +14,7 @@ interface CmsUser extends IIdentity // Constructor will be reverted in Doctrine 3.0 // public function __construct(string $username, string $password, string $email, string $role = self::ROLE_USER); - public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER); + public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER): void; /** * @return string[] diff --git a/src/User/Entity/User.php b/src/User/Entity/User.php index f3ce987..ac832cd 100644 --- a/src/User/Entity/User.php +++ b/src/User/Entity/User.php @@ -118,7 +118,7 @@ public function __construct(string $username, string $password, string $email, s } - public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER) + public function injectDefault(string $username, string $password, string $email, string $role = self::ROLE_USER): void { $this->username = trim(Strings::lower($username)); $this->password = $password