Parse error with PHP 7.4.33 starting from version 7.5.6 #3987
Replies: 3 comments
-
confirm the same bug, not fixed in 7.5.7, 7.5.8 > php deployer.phar
Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in phar://H:/work/PHP/test/deployer.phar/vendor/ringcentral/psr7/src/functions.php on line 355
PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in phar://H:/work/PHP/test/deployer.phar/vendor/ringcentral/psr7/src/functions.php on line 355
Script php deployer.phar handling the dep event returned with error code 255 > php -v
PHP 7.4.33 (cli) (built: Nov 2 2022 15:06:48) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies |
Beta Was this translation helpful? Give feedback.
-
In all available tags of https://github.com/ringcentral/psr7/blob/1.3.0/src/functions.php I can not find the comma behind last argument (IMO only available since 8.*) of that function. Seems, the issue comes in with a CGL automatism. |
Beta Was this translation helpful? Give feedback.
-
Yes, this discussion is a dupe to discussion #3974 Yes, you can not find this in the related lib repo. In v7 vendor dir is committed in the repo and was changed by cs-fixer. Check comment #3974 (comment) |
Beta Was this translation helpful? Give feedback.
-
Deployer Version
v7.5.6
Target OS
Ubuntu 22.04.4, Windows 10 Pro
Which PHP version are you using?
PHP 7.4
Content of deploy.php or deploy.yaml
No response
Steps to reproduce
deployer.phar
stop working from version 7.5.6 using PHP 7.4.33, triggering a parse error:PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in phar:///home/ubuntu/bin/dep/vendor/ringcentral/psr7/src/functions.php on line 355
Beta Was this translation helpful? Give feedback.
All reactions