From 6b6812aa00cba6a9f3ce65b928b7620f9a42ec96 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 27 Dec 2020 19:35:22 +0300 Subject: [PATCH] feat(core): Moving to PHP 7.4.0 #524 --- src/flextype/Foundation/Entries/Entries.php | 2 +- src/flextype/Foundation/Flextype.php | 2 +- src/flextype/Foundation/Plugins.php | 2 +- src/flextype/preflight.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flextype/Foundation/Entries/Entries.php b/src/flextype/Foundation/Entries/Entries.php index 3c38eb41..fa7add06 100755 --- a/src/flextype/Foundation/Entries/Entries.php +++ b/src/flextype/Foundation/Entries/Entries.php @@ -33,7 +33,7 @@ class Entries * @var array * @access private */ - private $storage = [ + private array $storage = [ 'fetch' => [ 'id' => '', 'data' => [], diff --git a/src/flextype/Foundation/Flextype.php b/src/flextype/Foundation/Flextype.php index 36d79678..6eb81cdf 100644 --- a/src/flextype/Foundation/Flextype.php +++ b/src/flextype/Foundation/Flextype.php @@ -31,7 +31,7 @@ final class Flextype extends App * * @var array */ - private static $instances = []; + private static array $instances = []; /** * Flextype should not be cloneable. diff --git a/src/flextype/Foundation/Plugins.php b/src/flextype/Foundation/Plugins.php index f5163eaf..f4c328bf 100755 --- a/src/flextype/Foundation/Plugins.php +++ b/src/flextype/Foundation/Plugins.php @@ -34,7 +34,7 @@ class Plugins * * @var array */ - private $locales = []; + private array $locales = []; /** * Constructor diff --git a/src/flextype/preflight.php b/src/flextype/preflight.php index bb2bf389..a722e900 100644 --- a/src/flextype/preflight.php +++ b/src/flextype/preflight.php @@ -8,7 +8,7 @@ $flextypeManifestFilePath = ROOT_DIR . '/src/flextype/flextype.yaml'; $defaultFlextypeSettingsFilePath = ROOT_DIR . '/src/flextype/settings.yaml'; $customFlextypeSettingsFilePath = PATH['project'] . '/config/flextype/settings.yaml'; $preflightFlextypePath = PATH['tmp'] . '/preflight/flextype/'; -$customFlextypeSettingsPath = PATH['project'] . '/config/flextype/'; +$customFlextypeSettingsPath = PATH['project'] . '/config/flextype/'; ! filesystem()->directory($preflightFlextypePath)->exists() and filesystem()->directory($preflightFlextypePath)->create(0755, true); ! filesystem()->directory($customFlextypeSettingsPath)->exists() and filesystem()->directory($customFlextypeSettingsPath)->create(0755, true);