@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * @param class-string|object $object |
| 17 | 17 | */ |
| 18 | - public static function getShortClassName(object|string $object): string |
|
| 18 | + public static function getShortClassName(object | string $object): string |
|
| 19 | 19 | { |
| 20 | 20 | $reflect = new ReflectionClass($object); |
| 21 | 21 | |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | self::assertSame( |
| 168 | 168 | [ |
| 169 | 169 | 'privilege' => 'non-existing-privilege', |
| 170 | - 'allowed' => true, // True because allowed via the `null` wildcard |
|
| 170 | + 'allowed' => true, // True because allowed via the `null` wildcard |
|
| 171 | 171 | 'allowIf' => [], |
| 172 | 172 | 'denyIf' => [], |
| 173 | 173 | ], |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * @return ExecutionResult|ExecutionResult[] |
| 53 | 53 | */ |
| 54 | - public function execute(ServerRequestInterface $request): array|ExecutionResult |
|
| 54 | + public function execute(ServerRequestInterface $request): array | ExecutionResult |
|
| 55 | 55 | { |
| 56 | 56 | if (!$request->getParsedBody()) { |
| 57 | 57 | /** @var array $parsedBody */ |
@@ -21,5 +21,5 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Returns the user role. |
| 23 | 23 | */ |
| 24 | - public function getRole(): MultipleRoles|string; |
|
| 24 | + public function getRole(): MultipleRoles | string; |
|
| 25 | 25 | } |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | /** |
| 109 | 109 | * @param ExecutionResult|ExecutionResult[] $result |
| 110 | 110 | */ |
| 111 | - private function resultToArray(array|ExecutionResult $result): array |
|
| 111 | + private function resultToArray(array | ExecutionResult $result): array |
|
| 112 | 112 | { |
| 113 | 113 | if (is_array($result)) { |
| 114 | 114 | foreach ($result as &$one) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class NativeIn extends FunctionNode |
| 24 | 24 | { |
| 25 | - private string|Node $field; |
|
| 25 | + private string | Node $field; |
|
| 26 | 26 | |
| 27 | 27 | private Literal $nativeQuery; |
| 28 | 28 | |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | final class PhpEnumType extends \GraphQL\Type\Definition\PhpEnumType |
| 14 | 14 | { |
| 15 | - protected function extractDescription(ReflectionClassConstant|ReflectionClass $reflection): ?string |
|
| 15 | + protected function extractDescription(ReflectionClassConstant | ReflectionClass $reflection): ?string |
|
| 16 | 16 | { |
| 17 | 17 | if ($reflection instanceof ReflectionClassConstant) { |
| 18 | 18 | $value = $reflection->getValue(); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | return $sql; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - public function convertToPHPValue(mixed $value, AbstractPlatform $platform): null|string|BackedEnum |
|
| 28 | + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): null | string | BackedEnum |
|
| 29 | 29 | { |
| 30 | 30 | if ($value === null || '' === $value) { |
| 31 | 31 | return null; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | parent::__construct($statement); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function bindValue(int|string $param, mixed $value, ParameterType $type): void |
|
| 26 | + public function bindValue(int | string $param, mixed $value, ParameterType $type): void |
|
| 27 | 27 | { |
| 28 | 28 | $this->params[$param] = $value; |
| 29 | 29 | |