-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code breaking comma in array_merge_recursive #29755
Conversation
The unnecessary comma caused an error message when the cache status was read (php bin/magento cache:status). The error message: "Parse error: syntax error, unexpected ')' in /home/test/misterag/setup/src/Magento/Setup/Module.php on line 82"
Hi @jessedezwart. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@jessedezwart please, sign Adobe CLA |
@magento create issue |
Hi @sidolov, thank you for the review.
|
@jessedezwart thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
Hi @jessedezwart @sidolov @jessedezwart could you share which php version are you using? |
@jessedezwart according to the @ihor-sviziev comment you should be fine using supported PHP versions to run Magento. |
Hi @jessedezwart, thank you for your contribution! |
@ihor-sviziev incorrect. This depends actually on your PHP 7.3 version. It might be an old version, but this trailing comma is NOT allowed in PHP 7.3.14-fpm. |
Hi @mischabraam, docker run --rm -it php:7.3.14 bash and tested on the following file: <?php
function myFn($a, $b) {
echo $a . $b;
}
myFn(1,2,); Just make sure you're using correct php version in your web server, using phpversion function. |
OMG thanks, I'm such a noob. Turns out the used docker image had 7.3.14, but the version to execute the commands was 7.2. You can shoot me ... : |
@mischabraam It's not a big issue, everyone do mistakes 😄 In order not to do such mistakes we already updated minimum required php version in bootstrap.php in #29993, so Magento will just let you know that you're trying to run on not supported version |
The unnecessary comma caused an error message when the cache status was read (php ./bin/magento cache:status).
The error message: "Parse error: syntax error, unexpected ')' in ./setup/src/Magento/Setup/Module.php on line 82"
After removal of the comma, all code relating to this class kept working as intended.
Resolved issues: