File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6453,6 +6453,11 @@ static void zend_compile_pipe(znode *result, zend_ast *ast)
64536453 && callable_ast -> child [1 ]-> kind == ZEND_AST_CALLABLE_CONVERT ) {
64546454 fcall_ast = zend_ast_create (ZEND_AST_CALL ,
64556455 callable_ast -> child [0 ], arg_list_ast );
6456+ /* Turn $foo |> bar::>baz(...) into bar::baz($foo). */
6457+ } else if (callable_ast -> kind == ZEND_AST_STATIC_CALL
6458+ && callable_ast -> child [2 ]-> kind == ZEND_AST_CALLABLE_CONVERT ) {
6459+ fcall_ast = zend_ast_create (ZEND_AST_STATIC_CALL ,
6460+ callable_ast -> child [0 ], callable_ast -> child [1 ], arg_list_ast );
64566461 /* Turn $foo |> $bar->baz(...) into $bar->baz($foo). */
64576462 } else if (callable_ast -> kind == ZEND_AST_METHOD_CALL
64586463 && callable_ast -> child [2 ]-> kind == ZEND_AST_CALLABLE_CONVERT ) {
You can’t perform that action at this time.
0 commit comments