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.
I have found in core that some classes which implemented an interface EventSubscriberInterface does not have access modifier for the method getSubscribedEvents(), which should be declared with access modifier.
See API documentation for the interface EventSubscriberInterface .
This issue is valid for all version of Drupal 8.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2762101-add-access-modifier.patch | 21.38 KB | ddrozdik |
Comments
Comment #2
ddrozdik CreditAttribution: ddrozdik as a volunteer and at Drupal Ukraine Community commentedHere is patch to review, implemented to 8.1.x version.
Comment #3
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedI have updated patch for 8.2 version.
Comment #6
Sutharsan CreditAttribution: Sutharsan commentedRemoving Novice. Fixing these failing tests requires more than that.
Comment #8
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedUpdated the patch again.
Comment #9
ddrozdik CreditAttribution: ddrozdik as a volunteer and at FFW, Drupal Ukraine Community for FFW commentedComment #12
borisson_This was fixed in #2854529: Fix Drupal.Scope.MethodScope - all methods should have scopes.