Skip to content

Commit

Permalink
Upgrade coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Aug 23, 2024
1 parent 43e268f commit 1b75888
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected static function addChild(array &$parent, array $childs, mixed $value)
* @return array<int|string,mixed>|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);
Expand Down
2 changes: 1 addition & 1 deletion src/Parsers/XmlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function parse(mixed $config) : array
*
* @return array<int|string,mixed>|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) {
Expand Down

0 comments on commit 1b75888

Please sign in to comment.