Problem/Motivation
After updating to Drupal 10, the following error is thrown:
PHP Fatal error: Declaration of Drupal\total_control\Routing\RouteSubscriber::getSubscribedEvents() must be compatible with Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents(): array in /var/www/html/web/modules/contrib/total_control/src/Routing/RouteSubscriber.php on line 26
Proposed resolution
- Add
: arrayto be compatible withRouteSubscriberBase
Remaining tasks
- ✅ File an issue
- ✅ Addition/Change/Update/Fix
- ✅ Testing to ensure no regression
- ✅ Automated unit testing coverage
- ✅ Automated functional testing coverage
- ➖ UX/UI designer responsibilities
- ➖ Readability
- ➖ Accessibility
- ➖ Performance
- ➖ Security
- ➖ Documentation
- ✅ Code review by maintainers
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release notes snippet
- ✅ Release total_control-3.0.4
API changes
- N/A
Data model changes
- N/A
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Screenshot 2023-06-22 at 4.49.05 PM.png | 156.43 KB | shobhit_juyal |
| #4 | 3366999-fatal-error-after.patch | 534 bytes | mrcdrx |
Issue fork total_control-3366999
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mrcdrx commentedComment #4
mrcdrx commentedAdded patch file for anyone who needs it.
Comment #5
mrcdrx commentedComment #6
jeroen dost commentedApplying the patch from #4 fixes the problem for me.
Comment #7
shobhit_juyal commentedPatch is tested and working fine for me and #6. Drupal version - 10.1.0

Moving this to RTBC.
Thanks
mrcdrx
Comment #8
rajab natshahThanks, Marc, for reporting and the MR/Patch fix. Also Jeroen and Shobhit for reviewing
I confirm having the issue with Drupal 10
Comment #9
rajab natshahComment #10
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshahComment #16
rajab natshah✅ Released total_control-3.0.4
Comment #18
mrcdrx commented