diff --git a/composer.json b/composer.json index 4bc1aeb..2c3c043 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ }, "require-dev": { "ext-xdebug": "*", - "aplus/coding-standard": "^2.1", + "aplus/coding-standard": "^2.8", "ergebnis/composer-normalize": "^2.25", "jetbrains/phpstorm-attributes": "^1.0", "phpmd/phpmd": "^2.13", diff --git a/src/Config.php b/src/Config.php index dd51845..126701d 100644 --- a/src/Config.php +++ b/src/Config.php @@ -43,7 +43,7 @@ class Config */ public function __construct( #[SensitiveParameter] - array | string $configs = null, + array | string | null $configs = null, #[SensitiveParameter] array $persistence = [], string $suffix = '.php' diff --git a/src/Parsers/Parser.php b/src/Parsers/Parser.php index 9aa4a73..734f839 100644 --- a/src/Parsers/Parser.php +++ b/src/Parsers/Parser.php @@ -96,7 +96,7 @@ protected static function addChild(array &$parent, array $childs, mixed $value) * @return array|bool|float|int|string|null The output value */ #[Pure] - protected static function getValue(string $value) : array|bool|int|float|string|null + protected static function getValue(string $value) : array | bool | float | int | string | null { $value = \trim($value); $lowerValue = \strtolower($value); diff --git a/src/Parsers/XmlParser.php b/src/Parsers/XmlParser.php index 8112010..782bf57 100644 --- a/src/Parsers/XmlParser.php +++ b/src/Parsers/XmlParser.php @@ -52,7 +52,7 @@ public static function parse(mixed $config) : array * * @return array|bool|float|int|string|null */ - protected static function parseValue(array|string $value) : array|bool|int|float|string|null + protected static function parseValue(array | string $value) : array | bool | float | int | string | null { if (\is_array($value)) { foreach ($value as &$val) {