Problem/Motivation
There are several constructor arguments that have backward compatibility code that needs removing in 12.0.0:
@trigger_error('Calling ' . __METHOD__ . '() without the $some_service argument is deprecated in drupal:11.x.0 and the $some_service argument will be required in drupal:12.0.0. See https://www.drupal.org/node/...', E_USER_DEPRECATED);
Steps to reproduce
Proposed resolution
Remove the BC layer.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3620747
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:
- 3620747-remove-deprecated-method-arguments
changes, plain diff MR !16977
Comments
Comment #2
longwaveComment #4
longwaveComment #6
smustgrave commentedSmall phpcs error
Comment #7
smustgrave commentedPushed a small change for tests to run.
Comment #8
smustgrave commentedTests all green looks like good removals.
Comment #9
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #10
smustgrave commentedFixed conflict with #3620912: Deprecate user.module cancel methods
Comment #12
godotislateI did a search for regexp
without the.*drupal:12.0.0and found these recent additions:...rigger_error('Calling ' . __METHOD__ . '() without the $accountCancellation argument is deprecated in drupal:11.5.0 and it will be required ......rigger_error('Calling ' . __METHOD__ . '() without the $accountCancellation argument is deprecated in drupal:11.5.0 and it will be required ......rigger_error('Calling ' . __METHOD__ . '() without the $logoutFinalizer argument is deprecated in drupal:11.5.0 and is removed from drupal:1......rigger_error('Calling ' . __METHOD__ . '() without the $accountCancellation argument is deprecated in drupal:11.5.0 and it will be required ......rigger_error('Calling ' . __METHOD__ . '() without the $contextual_links argument is deprecated in drupal:11.4.0 and will be required in dru...I think these and any others that trickle in the next few days can go in a follow up.
I also had a couple small MR comments, but they're follow up material as well:
$this->updateType = $updateType;in UpdateRegistry::__construct() can probably be removedproperty promotion in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php can be handled in #3278431: [May 2026] Use PHP 8 constructor property promotion for existing code
Committed bb5d24e and pushed to main. Thanks!
Comment #14
smustgrave commentedI have a ticket to clean up any remainders trying to see what’s left after these few land