Problem/Motivation
UpdateUploaderTestBase is test base class but not declared abstract. It's causing the following error with PHPStan
-
message: "#^Drupal\\\\Tests\\\\BrowserTestBase\\:\\:\\$defaultTheme is required\\. See https\\://www\\.drupal\\.org/node/3083055, which includes recommendations on which theme to use\\.$#"
count: 1
path: modules/update/tests/src/Functional/UpdateUploaderTestBase.php
Steps to reproduce
Scan modules/update/tests/src/Functional/UpdateUploaderTestBase.php. Errors about $defaultTheme but abstract classes are ignored for this error. Make abstract, no error.
Proposed resolution
Make it abstract
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3260710
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
mglamanComment #4
longwaveGreat to see PHPStan finding little bugs like this.
Comment #5
alexpottCommitted 6eb57f0 and pushed to 10.0.x. Thanks!
Committed 5996407 and pushed to 9.4.x. Thanks!