Skip to content

Commit 264de86

Browse files
committed
Support declaring functions with name clone
For use in stubs. see 9c7a3f8 see https://wiki.php.net/rfc/clone_with_v2 see php/php-src#18919
1 parent 7fc3bcf commit 264de86

File tree

4 files changed

+1830
-1749
lines changed

4 files changed

+1830
-1749
lines changed

grammar/php.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ fn_identifier:
471471
identifier_not_reserved
472472
| T_READONLY { $$ = Node\Identifier[$1]; }
473473
| T_EXIT { $$ = Node\Identifier[$1]; }
474+
| T_CLONE { $$ = Node\Identifier[$1]; }
474475
;
475476

476477
function_declaration_statement:

0 commit comments

Comments
 (0)