diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-30 14:37:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 14:37:37 +0200 |
commit | 1164c762eb2c120ca0d2d8da83dfe9f925ed652f (patch) | |
tree | 5c5dfd39c7e750a45e4f963951c10f953837d7e8 /lib | |
parent | e86bcc8953eb4cefbd069aac1ff9913669ebaf0f (diff) | |
parent | b70c6a128fe5d0053b7971881696eafce4cb7c26 (diff) | |
download | nextcloud-server-1164c762eb2c120ca0d2d8da83dfe9f925ed652f.tar.gz nextcloud-server-1164c762eb2c120ca0d2d8da83dfe9f925ed652f.zip |
Merge pull request #31948 from nextcloud/core-cleanup-74
Update core to PHP 7.4 standard
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php | 14 | ||||
-rw-r--r-- | lib/private/Repair/NC22/LookupServerSendCheck.php | 8 |
2 files changed, 5 insertions, 17 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php index 26f4b9ef46f..069d04a9e75 100644 --- a/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/BruteForceMiddleware.php @@ -47,18 +47,10 @@ use OCP\Security\Bruteforce\MaxDelayReached; * @package OC\AppFramework\Middleware\Security */ class BruteForceMiddleware extends Middleware { - /** @var ControllerMethodReflector */ - private $reflector; - /** @var Throttler */ - private $throttler; - /** @var IRequest */ - private $request; + private ControllerMethodReflector $reflector; + private Throttler $throttler; + private IRequest $request; - /** - * @param ControllerMethodReflector $controllerMethodReflector - * @param Throttler $throttler - * @param IRequest $request - */ public function __construct(ControllerMethodReflector $controllerMethodReflector, Throttler $throttler, IRequest $request) { diff --git a/lib/private/Repair/NC22/LookupServerSendCheck.php b/lib/private/Repair/NC22/LookupServerSendCheck.php index c68a608ed25..46029357dbe 100644 --- a/lib/private/Repair/NC22/LookupServerSendCheck.php +++ b/lib/private/Repair/NC22/LookupServerSendCheck.php @@ -33,12 +33,8 @@ use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; class LookupServerSendCheck implements IRepairStep { - - /** @var IJobList */ - private $jobList; - - /** @var IConfig */ - private $config; + private IJobList $jobList; + private IConfig $config; public function __construct(IJobList $jobList, IConfig $config) { $this->jobList = $jobList; |