2 ms·
I guess you could dump to AST and manipulate that. There is a utility to dump PHP code to AST, or vice-versa[1]. It was used to make a PHP7 to PHP5 converter: h
by tyingq 10y ago
I guess you could dump to AST and manipulate that. There is a utility to dump PHP code to AST, or vice-versa[1]. It was used to make a PHP7 to PHP5 converter: https://murze.be/2016/03/converting-php-7-code-equivalent-php-5-code/ https://murze.be/2016/03/converting-php-7-code-equivalent-ph...
[1] https://github.com/nikic/PHP-Parser https://github.com/nikic/PHP-Parser