Bugfix: Composer scripts/commands broken in 0.6.0 update#105
Bugfix: Composer scripts/commands broken in 0.6.0 update#105Potherca merged 1 commit intoPHPCSStandards:masterfrom
Conversation
After the 0.6.0 update, Composer's `scripts/post-install-cmd` and `scripts/post-update-cmd` were no longer running. This was due to PHP _exiting_ outright rather than _returning_ the `$exitCode`.
|
Hi! Thank you for taking the time to report this issue and suggest a fix. I will look into this today and (hopefully) merge and deploy a fix for this tomorrow. For now, I'd like to make a reproduction scenario and an automated test to validate the correct behaviour. Any updates will be posted here. |
|
Create a new directory with Execute Change the version number to |
|
Thank you for the detailed description! 👍 The change fixes all the scenarios I created for this issue. Thanks again for your help! |
|
The fix for this issue has been release as part of v0.6.2. |
After the 0.6.0 update, Composer's
scripts/post-install-cmdandscripts/post-update-cmdwere no longer running.This was due to PHP exiting outright rather than returning the
$exitCode.