@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */'; |
| 32 | 32 | |
| 33 | 33 | #[DataProvider('providerGetMethodDescription')] |
| 34 | - public function testGetMethodDescription(string|false $comment, ?string $expected): void |
|
| 34 | + public function testGetMethodDescription(string | false $comment, ?string $expected): void |
|
| 35 | 35 | { |
| 36 | 36 | $reader = $this->create($comment); |
| 37 | 37 | $actual = $reader->getMethodDescription(); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | #[DataProvider('providerGetParameterDescription')] |
| 54 | - public function testGetParameterDescription(string|false $comment, string $parameterName, ?string $expected): void |
|
| 54 | + public function testGetParameterDescription(string | false $comment, string $parameterName, ?string $expected): void |
|
| 55 | 55 | { |
| 56 | 56 | $reader = $this->create($comment); |
| 57 | 57 | $parameter = $this->createParameter($parameterName); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | #[DataProvider('providerGetParameterType')] |
| 74 | - public function testGetParameterType(string|false $comment, string $parameterName, ?string $expected): void |
|
| 74 | + public function testGetParameterType(string | false $comment, string $parameterName, ?string $expected): void |
|
| 75 | 75 | { |
| 76 | 76 | $reader = $this->create($comment); |
| 77 | 77 | $parameter = $this->createParameter($parameterName); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | #[DataProvider('providerGetReturnType')] |
| 96 | - public function testGetReturnType(string|false $comment, ?string $expected): void |
|
| 96 | + public function testGetReturnType(string | false $comment, ?string $expected): void |
|
| 97 | 97 | { |
| 98 | 98 | $reader = $this->create($comment); |
| 99 | 99 | $actual = $reader->getReturnType(); |
@@ -109,14 +109,14 @@ discard block |
||
| 109 | 109 | ]; |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | - private function create(string|false $comment): DocBlockReader |
|
| 112 | + private function create(string | false $comment): DocBlockReader |
|
| 113 | 113 | { |
| 114 | 114 | $method = new class($comment) extends ReflectionMethod { |
| 115 | - public function __construct(private readonly string|false $comment) |
|
| 115 | + public function __construct(private readonly string | false $comment) |
|
| 116 | 116 | { |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - public function getDocComment(): string|false |
|
| 119 | + public function getDocComment(): string | false |
|
| 120 | 120 | { |
| 121 | 121 | return $this->comment; |
| 122 | 122 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | #[DataProvider('providerDefaultFieldResolver')] |
| 55 | - public function testDefaultFieldResolver(mixed $expected, array|object $source, string $fieldName, array $args = []): void |
|
| 55 | + public function testDefaultFieldResolver(mixed $expected, array | object $source, string $fieldName, array $args = []): void |
|
| 56 | 56 | { |
| 57 | 57 | $resolver = new DefaultFieldResolver(); |
| 58 | 58 | $fieldDefinition = FieldDefinition::create(['name' => $fieldName, 'type' => Type::boolean()]); |