drop php7.3 support, make use of 7.4 features

This commit is contained in:
Shish
2021-03-14 23:43:50 +00:00
parent c558ee3bdb
commit 77f7121e26
296 changed files with 1571 additions and 2039 deletions

View File

@@ -8,8 +8,7 @@ include_once "config.php";
*/
class ConfigSaveEvent extends Event
{
/** @var Config */
public $config;
public Config $config;
public function __construct(Config $config)
{
@@ -23,11 +22,8 @@ class ConfigSaveEvent extends Event
*/
class SetupBuildingEvent extends Event
{
/** @var SetupTheme */
protected $theme;
/** @var SetupPanel */
public $panel;
protected SetupTheme $theme;
public SetupPanel $panel;
public function __construct(SetupPanel $panel)
{
@@ -39,9 +35,8 @@ class SetupBuildingEvent extends Event
class SetupPanel
{
/** @var SetupBlock[] */
public $blocks = [];
/** @var BaseConfig */
public $config;
public array $blocks = [];
public BaseConfig $config;
public function __construct(BaseConfig $config)
{
@@ -58,12 +53,9 @@ class SetupPanel
class SetupBlock extends Block
{
/** @var string */
public $header;
/** @var string */
public $body;
/** @var BaseConfig */
public $config;
public ?string $header;
public ?string $body;
public BaseConfig $config;
public function __construct(string $title, BaseConfig $config)
{
@@ -298,7 +290,7 @@ class SetupBlock extends Block
class Setup extends Extension
{
/** @var SetupTheme */
protected $theme;
protected ?Themelet $theme;
public function onInitExt(InitExtEvent $event)
{