[php-src] PR #20717: [PFA 1/n] Support PFA syntax

From: Date: Tue, 16 Dec 2025 12:21:45 +0000
Subject: [php-src] PR #20717: [PFA 1/n] Support PFA syntax
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34297@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20717 Author: arnaud-lb Spinned off https://github.com/arnaud-lb/php-src/pull/22 RFC: https://wiki.php.net/rfc/partial_function_application_v2 For FCCs, the parser generates a normal function call AST node, the but argument list is a ZEND_AST_CALLABLE_CONVERT / zend_ast_fcc node. For PFAs, we extend this so that zend_ast_fcc can represent arguments. In this PR: * Support PFA syntax in grammar * Update zend_ast_fcc so that arguments can be represented * Introduce zend_ast_arg_list_add(): Same as zend_ast_list_add(), but wraps the list in a ZEND_AST_CALLABLE_CONVERT when adding any placeholder argument.

« previous php.git-pulls (#34297) next »