File tree 2 files changed +9
-18
lines changed
2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,6 @@ class ResolveInfo
110
110
*/
111
111
public array $ variableValues = [];
112
112
113
- /**
114
- * Lazily initialized.
115
- */
116
- private QueryPlan $ queryPlan ;
117
-
118
113
/**
119
114
* @param \ArrayObject<int, FieldNode> $fieldNodes
120
115
* @param array<int, string|int> $path
@@ -207,18 +202,14 @@ public function getFieldSelection(int $depth = 0): array
207
202
*/
208
203
public function lookAhead (array $ options = []): QueryPlan
209
204
{
210
- if (! isset ($ this ->queryPlan )) {
211
- $ this ->queryPlan = new QueryPlan (
212
- $ this ->parentType ,
213
- $ this ->schema ,
214
- $ this ->fieldNodes ,
215
- $ this ->variableValues ,
216
- $ this ->fragments ,
217
- $ options
218
- );
219
- }
220
-
221
- return $ this ->queryPlan ;
205
+ return new QueryPlan (
206
+ $ this ->parentType ,
207
+ $ this ->schema ,
208
+ $ this ->fieldNodes ,
209
+ $ this ->variableValues ,
210
+ $ this ->fragments ,
211
+ $ options
212
+ );
222
213
}
223
214
224
215
/**
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function testDebugExceptions(): void
117
117
$ result = $ this ->executeQuery ($ query )->toArray ();
118
118
self ::assertArraySubset ($ expected , $ result );
119
119
120
- self ::assertEquals (44 , $ result ['errors ' ][0 ]['extensions ' ]['line ' ] ?? null );
120
+ self ::assertEquals (38 , $ result ['errors ' ][0 ]['extensions ' ]['line ' ] ?? null );
121
121
122
122
self ::assertStringContainsString ('tests/Server/ServerTestCase.php ' , $ result ['errors ' ][0 ]['extensions ' ]['file ' ] ?? '' );
123
123
}
You can’t perform that action at this time.
0 commit comments