mirror of
https://github.com/friendica/friendica
synced 2025-01-11 01:24:43 +00:00
Use correct typing
This commit is contained in:
parent
22ce079222
commit
f1e93be694
2 changed files with 6 additions and 7 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
use Dice\Dice;
|
|
||||||
use Friendica;
|
use Friendica;
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\Core\Logger\Capability\LogChannel;
|
use Friendica\Core\Logger\Capability\LogChannel;
|
||||||
|
@ -19,12 +18,12 @@ class Console extends \Asika\SimpleConsole\Console
|
||||||
{
|
{
|
||||||
// Disables the default help handling
|
// Disables the default help handling
|
||||||
protected $helpOptions = [];
|
protected $helpOptions = [];
|
||||||
protected $customHelpOptions = ['h', 'help', '?'];
|
protected array $customHelpOptions = ['h', 'help', '?'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Dice The DI library
|
* @var Container The Container
|
||||||
*/
|
*/
|
||||||
protected $container;
|
protected Container $container;
|
||||||
|
|
||||||
protected function getHelp()
|
protected function getHelp()
|
||||||
{
|
{
|
||||||
|
@ -70,7 +69,7 @@ HELP;
|
||||||
return $help;
|
return $help;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $subConsoles = [
|
protected array $subConsoles = [
|
||||||
'addon' => Friendica\Console\Addon::class,
|
'addon' => Friendica\Console\Addon::class,
|
||||||
'archivecontact' => Friendica\Console\ArchiveContact::class,
|
'archivecontact' => Friendica\Console\ArchiveContact::class,
|
||||||
'autoinstall' => Friendica\Console\AutomaticInstallation::class,
|
'autoinstall' => Friendica\Console\AutomaticInstallation::class,
|
||||||
|
@ -118,7 +117,7 @@ HELP;
|
||||||
|
|
||||||
public static function create(Container $container, array $argv = null): Console
|
public static function create(Container $container, array $argv = null): Console
|
||||||
{
|
{
|
||||||
return new static($container, $argv);
|
return new self($container, $argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function doExecute(): int
|
protected function doExecute(): int
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Container
|
||||||
*/
|
*/
|
||||||
public static function fromDice(Dice $container): self
|
public static function fromDice(Dice $container): self
|
||||||
{
|
{
|
||||||
return new static($container);
|
return new self($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue