Closed (duplicate)
Project:
Drupal core
Version:
9.2.x-dev
Component:
forms system
Priority:
Minor
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
4 Jan 2016 at 12:33 UTC
Updated:
29 Apr 2021 at 03:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
legolasboAttached patch adds the missing type hint to the interface's method and every method implementing it.
Comment #3
xanoThis is a BC break, because it will cause errors for any class that implements the interface and that has not been updated yet, which, with this patch, effectively means contrib will experience issues with this change.
Comment #4
xanoComment #5
jhodgdonThis is not a docs issue, with this patch, in any case.
Comment #6
catchWe could add a new interface, with a new method, with the type-hint.
When calling for valueCallback - check for the new interface and call the new method instead.
Have every core implementation implement this.
So moving back to 8.x to see how doable that is.
Comment #7
tim.plunkettI don't think this is worth doing.
Comment #16
quietone commentedThanks for the patch. However, we have a number of issues dealing with coding standards fixes and the community has decided that the best way to approach this is by fixing a rule at a time, rather than a file at a time. See #2571965: [meta] Fix PHP coding standards in core, stage 1 for the meta issue where this effort is being organized,
The changes here have been moved to #3107000: Fix Drupal.Commenting.FunctionComment.TypeHintMissing, Credit applied over ther.
Closing this as a duplicate.