| @@ -21,7 +21,7 @@ | ||
| 21 | 21 | */ | 
| 22 | 22 | public array $args = []; | 
| 23 | 23 | |
| 24 | - public null|string|Type $type = null; | |
| 24 | + public null | string | Type $type = null; | |
| 25 | 25 | |
| 26 | 26 | /** | 
| 27 | 27 | * @param null|string $name Can be used to alias the field | 
| @@ -51,7 +51,7 @@ | ||
| 51 | 51 | * - `MyType[]|null` | 
| 52 | 52 | * - `Collection<int, MyType>` | 
| 53 | 53 | */ | 
| 54 | - final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null|string|Type $typeDeclaration, bool $isEntityId = false): ?Type | |
| 54 | + final protected function getTypeFromPhpDeclaration(ReflectionClass $class, null | string | Type $typeDeclaration, bool $isEntityId = false): ?Type | |
| 55 | 55 |      { | 
| 56 | 56 |          if ($typeDeclaration === null || $typeDeclaration instanceof Type) { | 
| 57 | 57 | return $typeDeclaration; | 
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | final class DefaultFieldResolverTest extends TestCase | 
| 23 | 23 |  { | 
| 24 | 24 |      #[DataProvider('providerDefaultFieldResolver')] | 
| 25 | - public function testDefaultFieldResolver(mixed $expected, array|object $source, string $fieldName, array $args = []): void | |
| 25 | + public function testDefaultFieldResolver(mixed $expected, array | object $source, string $fieldName, array $args = []): void | |
| 26 | 26 |      { | 
| 27 | 27 | $resolver = new DefaultFieldResolver(); | 
| 28 | 28 | $fieldDefinition = new FieldDefinition(['name' => $fieldName, 'type' => Type::boolean()]); | 
| @@ -36,7 +36,7 @@ discard block | ||
| 36 | 36 | */'; | 
| 37 | 37 | |
| 38 | 38 |      #[DataProvider('providerGetMethodDescription')] | 
| 39 | - public function testGetMethodDescription(string|false $comment, ?string $expected): void | |
| 39 | + public function testGetMethodDescription(string | false $comment, ?string $expected): void | |
| 40 | 40 |      { | 
| 41 | 41 | $reader = $this->create($comment); | 
| 42 | 42 | $actual = $reader->getMethodDescription(); | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | } | 
| 57 | 57 | |
| 58 | 58 |      #[DataProvider('providerGetParameterDescription')] | 
| 59 | - public function testGetParameterDescription(string|false $comment, string $parameterName, ?string $expected): void | |
| 59 | + public function testGetParameterDescription(string | false $comment, string $parameterName, ?string $expected): void | |
| 60 | 60 |      { | 
| 61 | 61 | $reader = $this->create($comment); | 
| 62 | 62 | $parameter = $this->createParameter($parameterName); | 
| @@ -76,7 +76,7 @@ discard block | ||
| 76 | 76 | } | 
| 77 | 77 | |
| 78 | 78 |      #[DataProvider('providerGetParameterType')] | 
| 79 | - public function testGetParameterType(string|false $comment, string $parameterName, ?string $expected): void | |
| 79 | + public function testGetParameterType(string | false $comment, string $parameterName, ?string $expected): void | |
| 80 | 80 |      { | 
| 81 | 81 | $reader = $this->create($comment); | 
| 82 | 82 | $parameter = $this->createParameter($parameterName); | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | } | 
| 99 | 99 | |
| 100 | 100 |      #[DataProvider('providerGetReturnType')] | 
| 101 | - public function testGetReturnType(string|false $comment, ?string $expected): void | |
| 101 | + public function testGetReturnType(string | false $comment, ?string $expected): void | |
| 102 | 102 |      { | 
| 103 | 103 | $reader = $this->create($comment); | 
| 104 | 104 | $actual = $reader->getReturnType(); | 
| @@ -115,14 +115,14 @@ discard block | ||
| 115 | 115 | ]; | 
| 116 | 116 | } | 
| 117 | 117 | |
| 118 | - private function create(string|false $comment): DocBlockReader | |
| 118 | + private function create(string | false $comment): DocBlockReader | |
| 119 | 119 |      { | 
| 120 | 120 |          $method = new class($comment) extends ReflectionMethod { | 
| 121 | 121 | public function __construct( | 
| 122 | - private readonly string|false $comment, | |
| 122 | + private readonly string | false $comment, | |
| 123 | 123 |              ) {} | 
| 124 | 124 | |
| 125 | - public function getDocComment(): string|false | |
| 125 | + public function getDocComment(): string | false | |
| 126 | 126 |              { | 
| 127 | 127 | return $this->comment; | 
| 128 | 128 | } |