Problem/Motivation
As (soon to be) discovered by mglaman/phpstan-drupal 1.2.0 (see #3383279: Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again), we are using some deprecated functionality throughout Drupal core.
This issue is for dealing with:
------ -----------------------------------------------------------------
Line core/modules/media/tests/src/Kernel/EditorMediaDialogTest.php
------ -----------------------------------------------------------------
88 Call to method create() of deprecated class
Drupal\media\Form\EditorMediaDialog:
in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
replacement.
------ -----------------------------------------------------------------
Note: Depending on the landing of #3383279: Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again before the landing of this issue, we also might need to remove a suppression from core/phpstan-baseline.neon
Steps to reproduce
Proposed resolution
Add @group legacy to EditorMediaDialogTest, which seems we have missed in #3231341: Deprecate EditorLinkDialog, EditorImageDialog and EditorMediaDialog in Drupal 10.1 for removal in Drupal 11.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3383367
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:
- 3383367-add-group-legacy
changes, plain diff MR !4645
Comments
Comment #2
spokjeComment #4
spokjeComment #5
smustgrave commentedMinor change LGTM
Comment #6
smustgrave commentedComment #7
spokjeComment #8
spokjeComment #9
catchWill need a re-roll after #3383339: Replace implementing deprecated interface Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface with ValueResolverInterface
Comment #10
spokjeRerolled with PHPStan baseline suppression removed and re-RTBC-ed, since there were no code changes.
Comment #11
spokjeComment #13
catchCommitted 97f1d6b and pushed to 11.x. Thanks!