summaryrefslogtreecommitdiffstats
path: root/core/Command/Security
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-12 17:55:01 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-05-20 22:18:06 +0200
commitb70c6a128fe5d0053b7971881696eafce4cb7c26 (patch)
tree641ff76531803c207a92d86f47d46b6dd93ab6d3 /core/Command/Security
parent2b0d82675f669f00ad90f2750b1832a60ec9f766 (diff)
downloadnextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.tar.gz
nextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.zip
Update core to PHP 7.4 standard
- Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Command/Security')
-rw-r--r--core/Command/Security/ImportCertificate.php4
-rw-r--r--core/Command/Security/ListCertificates.php7
-rw-r--r--core/Command/Security/RemoveCertificate.php4
-rw-r--r--core/Command/Security/ResetBruteforceAttempts.php4
4 files changed, 5 insertions, 14 deletions
diff --git a/core/Command/Security/ImportCertificate.php b/core/Command/Security/ImportCertificate.php
index 16eae0dd4b8..9db7889e307 100644
--- a/core/Command/Security/ImportCertificate.php
+++ b/core/Command/Security/ImportCertificate.php
@@ -30,9 +30,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ImportCertificate extends Base {
-
- /** @var ICertificateManager */
- protected $certificateManager;
+ protected ICertificateManager $certificateManager;
public function __construct(ICertificateManager $certificateManager) {
$this->certificateManager = $certificateManager;
diff --git a/core/Command/Security/ListCertificates.php b/core/Command/Security/ListCertificates.php
index 9a99a2f6db6..15dd1812077 100644
--- a/core/Command/Security/ListCertificates.php
+++ b/core/Command/Security/ListCertificates.php
@@ -31,11 +31,8 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ListCertificates extends Base {
-
- /** @var ICertificateManager */
- protected $certificateManager;
- /** @var IL10N */
- protected $l;
+ protected ICertificateManager $certificateManager;
+ protected IL10N $l;
public function __construct(ICertificateManager $certificateManager, IL10N $l) {
$this->certificateManager = $certificateManager;
diff --git a/core/Command/Security/RemoveCertificate.php b/core/Command/Security/RemoveCertificate.php
index f915bed5b64..2f9c6ff978a 100644
--- a/core/Command/Security/RemoveCertificate.php
+++ b/core/Command/Security/RemoveCertificate.php
@@ -30,9 +30,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class RemoveCertificate extends Base {
-
- /** @var ICertificateManager */
- protected $certificateManager;
+ protected ICertificateManager $certificateManager;
public function __construct(ICertificateManager $certificateManager) {
$this->certificateManager = $certificateManager;
diff --git a/core/Command/Security/ResetBruteforceAttempts.php b/core/Command/Security/ResetBruteforceAttempts.php
index 004fd8d8bdd..8def0873bdf 100644
--- a/core/Command/Security/ResetBruteforceAttempts.php
+++ b/core/Command/Security/ResetBruteforceAttempts.php
@@ -30,9 +30,7 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ResetBruteforceAttempts extends Base {
-
- /** @var Throttler */
- protected $throttler;
+ protected Throttler $throttler;
public function __construct(Throttler $throttler) {
$this->throttler = $throttler;