-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patching around yet another nonsensical BC break caused by abuse of `…
…trigger_error()` where none was needed Ref: composer/composer@3013674#diff-67d1dfefa9c7b1c7e0b04b07274628d812f82cd82fae635c0aeba643c02e8cd8R145 Ref: composer/composer#10079 Ref: #366 (comment) Ref: composer/composer#10079 (review) /cc @herndlm FYI
- Loading branch information
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17850cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Ocramius,
thx for letting me know. I'm sorry that this caused you troubles and work. I really am.
Tbh. it's hard to not take that a bit personally after reading your comments, I don't feel offended or anything whatsoever though, so no worries.
I'm missing experience in lib maintenance and BC for sure, just kept to the best practices in the Composer code base / environment. So I'm not going to argue, take sides or start a big discussion. Just so that I can take something away from here though and learn something - after seeing #369 I think I understand your arguments but how would you have handled this in Composer? Just with the deprecated phpdoc so that e.g. tooling can check that as well?
Also - do you think I can do something else to help avoid something like this happening again? E.g. start a discussion over at Composer or open a PR there?
I have the feeling that the deprecation error method is the Symfonish way of handling BC and with phpunit removing the deprecation - exception transformation recently I thought that it even strengthened this approach more. Maybe it makes sense to raise this problem in the community more? Or if that has been done already and I just didn't notice - sorry :)
Sorry for the wall of text also. Wish you nice holidays too and don't do too much OSS work! :)
17850cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@herndlm don't take this as scolding: my intent was mostly to let you know the effects of
trigger_error()
, hence the "FYI"Correct 👍
I gave up on discussing it with the
symfony/*
-oriented ecosystem: the amount of regular pain caused by this approach seems to be completely ignored over there 🤷♀️I suggest taking it easy and thinking about it in a few days, of if it occurs again. For this library, I've raised #369, with which I'm going to raise the issue from this end.
17850cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanations Marco, appreciate it :)