Closed
Description
This issue is automatically created based on existing pull request: #32145: Catch php syntax errors (or other errors) in bin/magento and output the error instead of staying silent
Description (*)
When a PHP error occurs somewhere in code that is executed by bin/magento
it should output that error instead of staying silent
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
I'll update these steps with more concrete things, not much time at the moment to put a lot more info here, will try this weekend if I find more time
- Have a module installed in
app/code
which uses PHP 7.4 specific syntax which doesn't work on PHP 7.3 - Run
bin/magento
using PHP 7.3
Expected
- Exit code other then 0
- Explanation of the error
Actual
- Exit code other then 0 => correct!
- Just silence, nothing else, this makes it extremely confusing why the command doesn't seem to do anything
Questions or comments
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done