From 98b2037f369687f34a62317aadae1f5a66c12ff4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 04:03:49 +0100 Subject: [PATCH 1/1] Rename disabled to enable --- Entity/User.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Entity/User.php b/Entity/User.php index 124f6e5..089b8cd 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -45,14 +45,14 @@ class User extends BaseUser { * @param ?Civility $civility The user civility * @param ?string $forename The user forename * @param ?string $surname The user surname - * @param bool $active The user active - * @param bool $disabled The user disabled + * @param bool $active The user is active + * @param bool $enable The user is enable * @param ?string $pseudonym The user pseudonym * @param ?string $slug The user slug */ - public function __construct(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $disabled = false, ?string $pseudonym = null, ?string $slug = null) { + public function __construct(string $mail, string $password, ?Civility $civility = null, ?string $forename = null, ?string $surname = null, bool $active = false, bool $enable = true, ?string $pseudonym = null, ?string $slug = null) { //Call parent constructor - parent::__construct($mail, $password, $civility, $forename, $surname, $active, $disabled); + parent::__construct($mail, $password, $civility, $forename, $surname, $active, $enable); //Set defaults $this->pseudonym = $pseudonym; -- 2.41.1