File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
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
/**
You can’t perform that action at this time.
0 commit comments