-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[OptionsResolver] Add $triggerDeprecation arg to offsetGet() method in Options interface #31799
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
Conversation
We lack a deprecation notice in 4.4 :/ this is a special case. I think |
Or at least trigger only if the number of arguments in the real method is less than the ones defined in |
dc55eea
to
b8cd9ba
Compare
b8cd9ba
to
d983fd8
Compare
I agree |
(don't forget the UPGRADE files :) ) |
Yes, I think so :) |
Adding |
Actually I'm proposing to remove the argument from the interface in #31950 |
* @throws NoSuchOptionException If the option is not set | ||
* @throws InvalidOptionsException If the option doesn't fulfill the | ||
* specified validation rules | ||
* @throws OptionDefinitionException If there is a cyclic dependency between |
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.
all this is not a minor change: was it implicitly the definition of the contracts of the interface before?
also, does it make sense to have all this at the abstraction level? or are they implementation details of OptionsResolver, the implementation?
Ref: #28878