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.
Problem/Motivation
1x: Method "Symfony\Component\BrowserKit\AbstractBrowser::doRequest()" will return "object" as of its next major version. Doing the same in child class "Drupal\Tests\DrupalTestBrowser" will be required when upgrading.
Steps to reproduce
Proposed resolution
Add the object type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3231390-1.patch | 555 bytes | catch |
Comments
Comment #2
catchComment #3
daffie CreditAttribution: daffie commentedIn the testbot run with the MR with Symfony 5.4 and without the change of this patch there where more 4 deprecation messages for "Symfony\Component\BrowserKit\AbstractBrowser::doRequest()". See: https://www.drupal.org/pift-ci-job/2168133.
For the same MR with Symfony 5.4 and the change of this patch all those deprecation message where gone. See: https://www.drupal.org/pift-ci-job/2170145. Therefor for me RTBC.
Comment #4
daffie CreditAttribution: daffie commentedPart of the Symfony 6 in D10 initiative.
Comment #5
larowlanNothing extends this in contrib http://grep.xnddx.ru/search?text=extends+DrupalTestBrowser&filename=
Adding to the change notice.
Committed 15c98f6 and pushed to 9.3.x. Thanks!