@@ -322,7 +322,7 @@ |
||
322 | 322 | * |
323 | 323 | * @return Configuration |
324 | 324 | */ |
325 | - public function fromObject(object|string $object): Configuration; |
|
325 | + public function fromObject(object | string $object): Configuration; |
|
326 | 326 | |
327 | 327 | /** |
328 | 328 | * Yell if something bad has happened, or pass quietly. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * @return Configuration |
80 | 80 | * @throws Exception |
81 | 81 | */ |
82 | - public function __call(string $name, array|null $arguments): Configuration |
|
82 | + public function __call(string $name, array | null $arguments): Configuration |
|
83 | 83 | { |
84 | 84 | if (false === $this->silent) { |
85 | 85 | throw new Exception('Unable to load the configuration file ' . \current($arguments)); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | return $this->import($parameters); |
98 | 98 | } |
99 | 99 | |
100 | - public function fromObject(object|string $object): Configuration |
|
100 | + public function fromObject(object | string $object): Configuration |
|
101 | 101 | { |
102 | 102 | if (\is_string($object) && \class_exists($object)) { |
103 | 103 | $object = new $object; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * |
144 | 144 | * @return string UUID v1 |
145 | 145 | */ |
146 | - public static function v1(string|int $address = null): string |
|
146 | + public static function v1(string | int $address = null): string |
|
147 | 147 | { |
148 | 148 | static $node, $clockSeq, $lastTimestamp; |
149 | 149 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * @param string|int|null $address [optional] |
179 | 179 | * @return string |
180 | 180 | */ |
181 | - $nodeIdentifier = static function(string|int $address = null) use ($fetchAddress): string { |
|
181 | + $nodeIdentifier = static function(string | int $address = null) use ($fetchAddress): string { |
|
182 | 182 | $address = null !== $address |
183 | 183 | ? \str_replace([':', '-', '.'], '', (string)$address) |
184 | 184 | : $fetchAddress(); |
@@ -23,11 +23,11 @@ |
||
23 | 23 | * It will mess up your Zen. |
24 | 24 | */ |
25 | 25 | class Arguments implements Argument, |
26 | - TransformsToImmutable, |
|
27 | - NamespaceDataFilter, |
|
28 | - IteratorAggregate, |
|
29 | - Countable, |
|
30 | - JsonSerializable |
|
26 | + TransformsToImmutable, |
|
27 | + NamespaceDataFilter, |
|
28 | + IteratorAggregate, |
|
29 | + Countable, |
|
30 | + JsonSerializable |
|
31 | 31 | { |
32 | 32 | use AccessorTrait, MutatorTrait, ArrayDataFilterTrait { |
33 | 33 | MutatorTrait::__set insteadof AccessorTrait; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** @var string The key name of the node value */ |
30 | 30 | private string $val = '#'; |
31 | 31 | |
32 | - private string|null $root; |
|
32 | + private string | null $root; |
|
33 | 33 | private DOMDocument $document; |
34 | 34 | |
35 | 35 | public function __construct(?string $root, string $nodeKey = '#') |