Phpunit deprecation issue:
1x: Declaring ::setUp without a void return typehint in Drupal\Tests\admin_toolbar_search\FunctionalJavascript\AdminToolbarToolsSearchTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
1x in DrupalListener::startTest from Drupal\Tests\Listeners
1x: Declaring ::setUp without a void return typehint in Drupal\Tests\admin_toolbar_tools\Functional\AdminToolbarToolsAlterTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
1x in DrupalListener::startTest from Drupal\Tests\Listeners
1x: Declaring ::setUp without a void return typehint in Drupal\Tests\admin_toolbar\Functional\AdminToolbarAlterTest is deprecated in drupal:9.0.0. Typehinting will be required before drupal:10.0.0. See https://www.drupal.org/node/3114724
1x in DrupalListener::startTest from Drupal\Tests\Listeners
Comment | File | Size | Author |
---|---|---|---|
#2 | 3163412-2.patch | 1.74 KB | pavnish |
|
Comments
Comment #2
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedPlease review this patch
Comment #4
adriancidThanks
Comment #5
Dave ReidJust a heads up that this means that the module will require at least PHP 7.1, but Drupal 8 (which this branch supports) currently supports PHP 7.0.8+. So there may be some users that this errors for them. I would have probably waited until closer to Drupal 10 to do this, or done it on a branch that will only be D9+ compatible.
Comment #6
adriancidThanks David I missed that part.
Comment #8
idebr CreditAttribution: idebr at iO commentedDrupal 8 is no longer supported.
Drupal 9 requires 7.3 or higher, so this issue is no longer postponed.
Comment #9
adriancidI think we have this patch in the 3.x version
Comment #10
hmendes CreditAttribution: hmendes at CI&T commentedI ran phpcs here and those problems with "setUp without a void return typehint" are not a happening anymore.
Tested with Drupal 9.3.0 and Admin_toolbar 3.x
But, there's a few problems about coding standards, should I open a new issue for that?
Comment #11
adriancidYes, open a new ticket please
Comment #12
hmendes CreditAttribution: hmendes at CI&T commentedCreated #3256343: Fix coding standards issues.
We can close this one then.
Comment #13
lhridley CreditAttribution: lhridley as a volunteer and at FRUITION commented