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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ddrozdik created an issue. See original summary.

ddrozdik’s picture

Status: Active » Needs review
FileSize
21.74 KB

Here is patch to review, implemented to 8.1.x version.

ddrozdik’s picture

I have updated patch for 8.2 version.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Status: Needs review » Needs work

The last submitted patch, 3: 2762101-add-access-modifier-8.2.x.patch, failed testing.

Sutharsan’s picture

Issue tags: -Novice

Removing Novice. Fixing these failing tests requires more than that.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ddrozdik’s picture

Updated the patch again.

ddrozdik’s picture

Assigned: ddrozdik » Unassigned

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

borisson_’s picture

Status: Needs review » Closed (duplicate)