]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/PostUpdate.php
Merge pull request #12440 from MrPetovan/bug/fatal-errors
[friendica.git] / src / Console / PostUpdate.php
index 5cff05a6980e6805622bdf796c24e78922e25fb6..8bec14e2767030846980b9759cd1e3e99da545b1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,7 +22,7 @@
 namespace Friendica\Console;
 
 use Friendica\App;
-use Friendica\Core\Config\IConfig;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 use Friendica\Core\L10n;
 use Friendica\Core\Update;
 
@@ -38,7 +38,7 @@ class PostUpdate extends \Asika\SimpleConsole\Console
         */
        private $appMode;
        /**
-        * @var IConfig
+        * @var IManageConfigValues
         */
        private $config;
        /**
@@ -60,7 +60,7 @@ HELP;
                return $help;
        }
 
-       public function __construct(App\Mode $appMode, IConfig $config, L10n $l10n, array $argv = null)
+       public function __construct(App\Mode $appMode, IManageConfigValues $config, L10n $l10n, array $argv = null)
        {
                parent::__construct($argv);
 
@@ -69,7 +69,7 @@ HELP;
                $this->l10n = $l10n;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                $a = \Friendica\DI::app();