@@ -167,7 +167,7 @@ private function parseFragmentDefinition() : Fragment
167167 $ this ->tokenizer ->assertNext (TokenType::CUR_O , ExpectedSelectionSet::class);
168168
169169 return new Fragment (
170- $ fragmentName ,
170+ $ fragmentName , // @phpstan-ignore argument.type
171171 $ typeCond ,
172172 $ directives ,
173173 $ this ->parseSelectionSet (),
@@ -314,7 +314,13 @@ private function parseField() : Field
314314 $ children = $ this ->parseSelectionSet ();
315315 }
316316
317- return new Field ($ fieldName , $ aliasName , $ children , $ arguments , $ directives );
317+ return new Field (
318+ $ fieldName , // @phpstan-ignore argument.type
319+ $ aliasName ,
320+ $ children ,
321+ $ arguments ,
322+ $ directives ,
323+ );
318324 }
319325
320326 /**
@@ -340,7 +346,7 @@ private function parseFragmentSpread() : FragmentSpread
340346 }
341347
342348 return new NamedFragmentSpread (
343- $ this ->tokenizer ->getCurrent ()->getValue (),
349+ $ this ->tokenizer ->getCurrent ()->getValue (), // @phpstan-ignore argument.type
344350 $ this ->parseDirectives (),
345351 );
346352 case TokenType::DIRECTIVE :
@@ -390,7 +396,7 @@ private function parseVariables() : VariableSet
390396 }
391397
392398 $ variables [] = new Variable (
393- $ name ,
399+ $ name , // @phpstan-ignore argument.type
394400 $ type ,
395401 $ default ,
396402 $ this ->parseDirectives (),
@@ -423,7 +429,10 @@ private function parseDirectives() : DirectiveSet
423429 $ dirArguments = $ this ->parseArguments ();
424430 }
425431
426- $ directives [] = new Directive ($ dirName , $ dirArguments );
432+ $ directives [] = new Directive (
433+ $ dirName , // @phpstan-ignore argument.type
434+ $ dirArguments ,
435+ );
427436 }
428437
429438 return new DirectiveSet ($ directives );
0 commit comments