@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * |
| 303 | 303 | * @return Asset |
| 304 | 304 | */ |
| 305 | - public function asset($path, array|null $options = null): Asset |
|
| 305 | + public function asset($path, array | null $options = null): Asset |
|
| 306 | 306 | { |
| 307 | 307 | if (!\is_string($path) && !\is_array($path)) { |
| 308 | 308 | throw new RuntimeException(\sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__))); |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * |
| 534 | 534 | * @throws RuntimeException |
| 535 | 535 | */ |
| 536 | - public function html(array $context, Asset|array $assets, array $attributes = [], array $options = []): string |
|
| 536 | + public function html(array $context, Asset | array $assets, array $attributes = [], array $options = []): string |
|
| 537 | 537 | { |
| 538 | 538 | $htmlAttributes = ''; |
| 539 | 539 | $preload = false; |
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | /** |
| 1031 | 1031 | * Hashing an object, an array or a string (with algo, md5 by default). |
| 1032 | 1032 | */ |
| 1033 | - public function hash(object|array|string $data, $algo = 'md5'): string |
|
| 1033 | + public function hash(object | array | string $data, $algo = 'md5'): string |
|
| 1034 | 1034 | { |
| 1035 | 1035 | switch (\gettype($data)) { |
| 1036 | 1036 | case 'object': |