Skip to content

Commit 6665e82

Browse files
authored
Merge pull request #326 from cvergne/patch-1
Doc: Fix inverted PHP7/8 input example
2 parents e7c2a58 + 09064b6 commit 6665e82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/input_types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,17 @@ Given the factory below, the return type is "Location", therefore, the GraphQL i
167167
<!--DOCUSAURUS_CODE_TABS-->
168168
<!--PHP 8+-->
169169
```
170-
/**
171-
* @Factory()
172-
*/
170+
#[Factory]
173171
public function createLocation(float $latitude, float $longitude): Location
174172
{
175173
return new Location($latitude, $longitude);
176174
}
177175
```
178176
<!--PHP 7+-->
179177
```
180-
#[Factory]
178+
/**
179+
* @Factory()
180+
*/
181181
public function createLocation(float $latitude, float $longitude): Location
182182
{
183183
return new Location($latitude, $longitude);

0 commit comments

Comments
 (0)