@@ -168,31 +168,31 @@ private static function getExpressionResolvers(): array
168168 {
169169 if (self ::$ resolvers === null ) {
170170 self ::$ resolvers = [
171- 'integer ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
171+ 'integer ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
172172 return new \PhpParser \Node \Expr \FuncCall (
173173 new \PhpParser \Node \Name ('is_int ' ),
174174 [$ value ]
175175 );
176176 },
177- 'string ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
177+ 'string ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
178178 return new \PhpParser \Node \Expr \FuncCall (
179179 new \PhpParser \Node \Name ('is_string ' ),
180180 [$ value ]
181181 );
182182 },
183- 'stringNotEmpty ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
183+ 'stringNotEmpty ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
184184 return new \PhpParser \Node \Expr \FuncCall (
185185 new \PhpParser \Node \Name ('is_string ' ),
186186 [$ value ]
187187 );
188188 },
189- 'float ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
189+ 'float ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
190190 return new \PhpParser \Node \Expr \FuncCall (
191191 new \PhpParser \Node \Name ('is_float ' ),
192192 [$ value ]
193193 );
194194 },
195- 'integerish ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
195+ 'integerish ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
196196 return new \PhpParser \Node \Expr \BinaryOp \BooleanOr (
197197 new \PhpParser \Node \Expr \BinaryOp \BooleanAnd (
198198 new \PhpParser \Node \Expr \FuncCall (
@@ -210,49 +210,49 @@ private static function getExpressionResolvers(): array
210210 )
211211 );
212212 },
213- 'numeric ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
213+ 'numeric ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
214214 return new \PhpParser \Node \Expr \FuncCall (
215215 new \PhpParser \Node \Name ('is_numeric ' ),
216216 [$ value ]
217217 );
218218 },
219- 'boolean ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
219+ 'boolean ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
220220 return new \PhpParser \Node \Expr \FuncCall (
221221 new \PhpParser \Node \Name ('is_bool ' ),
222222 [$ value ]
223223 );
224224 },
225- 'scalar ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
225+ 'scalar ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
226226 return new \PhpParser \Node \Expr \FuncCall (
227227 new \PhpParser \Node \Name ('is_scalar ' ),
228228 [$ value ]
229229 );
230230 },
231- 'object ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
231+ 'object ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
232232 return new \PhpParser \Node \Expr \FuncCall (
233233 new \PhpParser \Node \Name ('is_object ' ),
234234 [$ value ]
235235 );
236236 },
237- 'resource ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
237+ 'resource ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
238238 return new \PhpParser \Node \Expr \FuncCall (
239239 new \PhpParser \Node \Name ('is_resource ' ),
240240 [$ value ]
241241 );
242242 },
243- 'isCallable ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
243+ 'isCallable ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
244244 return new \PhpParser \Node \Expr \FuncCall (
245245 new \PhpParser \Node \Name ('is_callable ' ),
246246 [$ value ]
247247 );
248248 },
249- 'isArray ' => function (Scope $ scope , Arg $ value ): ? \PhpParser \Node \Expr {
249+ 'isArray ' => function (Scope $ scope , Arg $ value ): \PhpParser \Node \Expr {
250250 return new \PhpParser \Node \Expr \FuncCall (
251251 new \PhpParser \Node \Name ('is_array ' ),
252252 [$ value ]
253253 );
254254 },
255- 'isIterable ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
255+ 'isIterable ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
256256 return new \PhpParser \Node \Expr \BinaryOp \BooleanOr (
257257 new \PhpParser \Node \Expr \FuncCall (
258258 new \PhpParser \Node \Name ('is_array ' ),
@@ -264,7 +264,7 @@ private static function getExpressionResolvers(): array
264264 )
265265 );
266266 },
267- 'isCountable ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
267+ 'isCountable ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
268268 return new \PhpParser \Node \Expr \BinaryOp \BooleanOr (
269269 new \PhpParser \Node \Expr \FuncCall (
270270 new \PhpParser \Node \Name ('is_array ' ),
@@ -300,43 +300,43 @@ private static function getExpressionResolvers(): array
300300 )
301301 );
302302 },
303- 'true ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
303+ 'true ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
304304 return new \PhpParser \Node \Expr \BinaryOp \Identical (
305305 $ expr ->value ,
306306 new \PhpParser \Node \Expr \ConstFetch (new \PhpParser \Node \Name ('true ' ))
307307 );
308308 },
309- 'false ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
309+ 'false ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
310310 return new \PhpParser \Node \Expr \BinaryOp \Identical (
311311 $ expr ->value ,
312312 new \PhpParser \Node \Expr \ConstFetch (new \PhpParser \Node \Name ('false ' ))
313313 );
314314 },
315- 'null ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
315+ 'null ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
316316 return new \PhpParser \Node \Expr \BinaryOp \Identical (
317317 $ expr ->value ,
318318 new \PhpParser \Node \Expr \ConstFetch (new \PhpParser \Node \Name ('null ' ))
319319 );
320320 },
321- 'notNull ' => function (Scope $ scope , Arg $ expr ): ? \PhpParser \Node \Expr {
321+ 'notNull ' => function (Scope $ scope , Arg $ expr ): \PhpParser \Node \Expr {
322322 return new \PhpParser \Node \Expr \BinaryOp \NotIdentical (
323323 $ expr ->value ,
324324 new \PhpParser \Node \Expr \ConstFetch (new \PhpParser \Node \Name ('null ' ))
325325 );
326326 },
327- 'same ' => function (Scope $ scope , Arg $ value1 , Arg $ value2 ): ? \PhpParser \Node \Expr {
327+ 'same ' => function (Scope $ scope , Arg $ value1 , Arg $ value2 ): \PhpParser \Node \Expr {
328328 return new \PhpParser \Node \Expr \BinaryOp \Identical (
329329 $ value1 ->value ,
330330 $ value2 ->value
331331 );
332332 },
333- 'notSame ' => function (Scope $ scope , Arg $ value1 , Arg $ value2 ): ? \PhpParser \Node \Expr {
333+ 'notSame ' => function (Scope $ scope , Arg $ value1 , Arg $ value2 ): \PhpParser \Node \Expr {
334334 return new \PhpParser \Node \Expr \BinaryOp \NotIdentical (
335335 $ value1 ->value ,
336336 $ value2 ->value
337337 );
338338 },
339- 'subclassOf ' => function (Scope $ scope , Arg $ expr , Arg $ class ): ? \PhpParser \Node \Expr {
339+ 'subclassOf ' => function (Scope $ scope , Arg $ expr , Arg $ class ): \PhpParser \Node \Expr {
340340 return new \PhpParser \Node \Expr \FuncCall (
341341 new \PhpParser \Node \Name ('is_subclass_of ' ),
342342 [
0 commit comments