-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Description
Description
I created a minimal gist to reproduce the error since it need at least 3 files.
https://gist.github.com/lyrixx/13df9efcfd08fee999c6b2bac0106117
>…re/dev/labs/php/rename-legacy-function(main *) php7.2 index.php
/home/gregoire/dev/labs/php/rename-legacy-function/test1.php
/home/gregoire/dev/labs/php/rename-legacy-function/test2.php
>…re/dev/labs/php/rename-legacy-function(main *) php7.3 index.php
/home/gregoire/dev/labs/php/rename-legacy-function/test1.php
/home/gregoire/dev/labs/php/rename-legacy-function/test2.php
>…re/dev/labs/php/rename-legacy-function(main *) php7.4 index.php
PHP Parse error: syntax error, unexpected end of file, expecting ';' in /home/gregoire/dev/labs/php/rename-legacy-function/test1.php on line 8
Parse error: syntax error, unexpected end of file, expecting ';' in /home/gregoire/dev/labs/php/rename-legacy-function/test1.php on line 8
see this part of gist to understand : https://gist.github.com/lyrixx/13df9efcfd08fee999c6b2bac0106117#file-function-fixer-php-L290-L293
The idea is to rename some functions (for dealing with a legacy and dirty codebase) with a stream filter. It used to work with older PHP version, but it seems it's broken since PHP 7.4.
PHP Version
7.4
Operating System
Ubuntu 20.04