summaryrefslogtreecommitdiffstats
path: root/core/Command/Background
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/Background
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/Background')
-rw-r--r--core/Command/Background/Base.php9
-rw-r--r--core/Command/Background/Job.php6
2 files changed, 3 insertions, 12 deletions
diff --git a/core/Command/Background/Base.php b/core/Command/Background/Base.php
index b80fd751177..dca7b58a5fc 100644
--- a/core/Command/Background/Base.php
+++ b/core/Command/Background/Base.php
@@ -38,15 +38,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
abstract class Base extends Command {
abstract protected function getMode();
+ protected IConfig $config;
- /**
- * @var \OCP\IConfig
- */
- protected $config;
-
- /**
- * @param \OCP\IConfig $config
- */
public function __construct(IConfig $config) {
parent::__construct();
$this->config = $config;
diff --git a/core/Command/Background/Job.php b/core/Command/Background/Job.php
index fdac7ed5f27..742bdd4329e 100644
--- a/core/Command/Background/Job.php
+++ b/core/Command/Background/Job.php
@@ -35,10 +35,8 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Job extends Command {
- /** @var IJobList */
- protected $jobList;
- /** @var ILogger */
- protected $logger;
+ protected IJobList $jobList;
+ protected ILogger $logger;
public function __construct(IJobList $jobList,
ILogger $logger) {