diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-23 23:03:56 +0330 |
---|---|---|
committer | Faraz Samapoor <fsa@adlas.at> | 2023-06-23 23:03:56 +0330 |
commit | e98cf3c37481ef92fbb2f50de16ea00d2958f3c3 (patch) | |
tree | cba89a58c0a9634e8d687a4d99a29b4158fa6aa8 /core/Db | |
parent | 877ddd28277e6bd263832209f4d22e713b4bdd87 (diff) | |
download | nextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.tar.gz nextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.zip |
Uses PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Db')
-rw-r--r-- | core/Db/LoginFlowV2Mapper.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/Db/LoginFlowV2Mapper.php b/core/Db/LoginFlowV2Mapper.php index feb1bd7b42d..8b6a342545c 100644 --- a/core/Db/LoginFlowV2Mapper.php +++ b/core/Db/LoginFlowV2Mapper.php @@ -36,12 +36,15 @@ use OCP\IDBConnection; class LoginFlowV2Mapper extends QBMapper { private const lifetime = 1200; - /** @var ITimeFactory */ - private $timeFactory; - - public function __construct(IDBConnection $db, ITimeFactory $timeFactory) { - parent::__construct($db, 'login_flow_v2', LoginFlowV2::class); - $this->timeFactory = $timeFactory; + public function __construct( + IDBConnection $db, + private ITimeFactory $timeFactory, + ) { + parent::__construct( + $db, + 'login_flow_v2', + LoginFlowV2::class, + ); } /** |