-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Removes deprecation messages which lead to irritation because there are no alternative paths for implementation #77
Conversation
…re no alternative paths for implementation Signed-off-by: Frank Brückner <dev@froschdesignstudio.de>
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.
Fine by me. Need another opinion from who introduced this deprecation
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.
I agree with the decision to un-deprecate this stuff. That said, I can see why it was deprecated as the "is it empty/required" dance is convoluted to say the least and the magic of auto injecting the NotEmpty validator is questionable.
IMO it's worth raising an issue that it all needs sorting out for the next major.
Does removing the deprecations alter the baseline?
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.
No objections here. When/if a solution is found, is there a chance these deprecations would be readded as they are?
Ok, let's just re-generate the baseline, and then this can be merged. Can't do myself: don't have docker on this PC today :D |
Merging as-is here: can't re-generate baseline ATM, but it's a minor issue. |
Thanks @froschdesign! |
The current deprecations of methods and properties cannot be resolved or bypassed by other options or workarounds. The
isValid
method of theInput
class uses and needs these deprecated methods and properties:laminas-inputfilter/src/Input.php
Lines 370 to 405 in 2e9a2f2
laminas-inputfilter/src/Input.php
Lines 20 to 32 in 2e9a2f2
laminas-inputfilter/src/Input.php
Lines 46 to 51 in 2e9a2f2
An alternative solution or way was never provided and in its current state, it would not work. Therefore the deprecation was too early and all discussions and developments in this direction have never been completed or are very old.
See:
As long as we do not have an alternative solution, the current deprecation messages are confusing.