Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2332389: Finish adding methods to FormStateInterface introduced a small inconsistency:
FormState has public function &getGroups() {
But FormStateInterface has public function getGroups();
without the &
This still works since PHP 5.3.4 (no idea why) but it is confusing for those looking at the interface.
Proposed resolution
Add the missing &
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2336405-form_state-1.patch | 468 bytes | tim.plunkett |
Comments
Comment #1
tim.plunkettWe can't really write tests for this AFAIK, since the class is allowed to override the interface.
Comment #2
jibranThank you for catching this.
Comment #3
alexpottCommitted 949cb63 and pushed to 8.0.x. Thanks!
Comment #5
tim.plunkettThanks!