| @@ -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 | |
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | /** | 
| 44 | 44 | * @dataProvider providerInputs | 
| 45 | 45 | */ | 
| 46 | - public function testSerialize(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input): void | |
| 46 | + public function testSerialize(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input): void | |
| 47 | 47 |      { | 
| 48 | 48 | $type = $this->createType($decimal, $minimum, $maximum); | 
| 49 | 49 | $actual = $type->serialize($input); | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 | /** | 
| 54 | 54 | * @dataProvider providerInputs | 
| 55 | 55 | */ | 
| 56 | - public function testParseValue(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input, ?string $expected): void | |
| 56 | + public function testParseValue(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input, ?string $expected): void | |
| 57 | 57 |      { | 
| 58 | 58 | $type = $this->createType($decimal, $minimum, $maximum); | 
| 59 | 59 | |
| @@ -69,7 +69,7 @@ discard block | ||
| 69 | 69 | /** | 
| 70 | 70 | * @dataProvider providerInputs | 
| 71 | 71 | */ | 
| 72 | - public function testParseLiteral(int $decimal, ?string $minimum, ?string $maximum, null|float|int|string $input, ?string $expected): void | |
| 72 | + public function testParseLiteral(int $decimal, ?string $minimum, ?string $maximum, null | float | int | string $input, ?string $expected): void | |
| 73 | 73 |      { | 
| 74 | 74 | $type = $this->createType($decimal, $minimum, $maximum); | 
| 75 | 75 | |
| @@ -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; |