Problem/Motivation
Discovered whilst working on #3219959-63: Update standard profile so Olivero is the default theme
There are still a few protected $dumpHeaders = TRUE; floating around in the Tests.
Seems to me this is a leftover from the ages of \Drupal\simpletest\WebTestBase.
By 9.0.0 we went with Headers all the time in \Drupal\Tests\BrowserHtmlDebugTrait
Proposed resolution
Remove all protected $dumpHeaders = TRUE; and send it the way of the dodo.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | interdiff_2152-2155.txt | 2.48 KB | spokje |
Issue fork drupal-3276839
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 #2
spokjeComment #4
spokjeComment #5
mondrakeYes, cruft. In the 10 branch PHPStan also spotted some orphans here, and #3274474: Fix 'Access to an undefined property' PHPStan L0 errors is removing them.
Comment #6
mondrakebtw a D10 patch will require some phpstan baseline cleanup.
Comment #7
spokjeThanks @mondrake for pointing out the D10 phpstan baseline thingy.
I'll leave it up to committers discretion if #3274474: Fix 'Access to an undefined property' PHPStan L0 errors should go in first (which would make this issue obsolete), or we need a D10 patch with the removal of the errors in
core/phpstan-baseline.neonand get both patches in, which would make the mentioned issue (a tiny bit) smaller.Comment #8
mondrake@spokje this one is more complete re the scope it has. The other would only remove a few. Also the other may be D10 only. So I think a D10 patch version of the MR here would do.
Comment #10
spokje@mondrake: Sense = made.
The D10 version and
core/phpstan-baseline.neonpointed out a few I've missed in my original D9.4 MR.So back to NR:
MR!2152:
9.4.x-devMR!2155:
10.0.x-devAttached a interdiff between the 2 MR diffs. It looks a bit wonky for
core/modules/hal/tests/src/Functional/page_cache/PageCacheTest.phpsince that's deleted in10.0.x-dev. In9.4.x-devit's actually removing thedumpHeadersproperty: See hereComment #11
spokjeComment #12
mondrakeThanks 🙏 👍
Comment #13
quietone commentedTests are no longer running on this, it looks like it needs a rebase.
Comment #14
spokjeRebased both MRs
Comment #15
spokjePostponing on new (correct) PHPStan baseline: #3278782: PHPStan baseline is out of sync
Comment #16
spokjeComment #17
mondrakeRerolled the D10 patch after baseline was fixed. Back to RTBC.
Comment #18
alexpottCommitted fdfde8e and pushed to 10.0.x. Thanks!
Committed 1f1cdd2 and pushed to 9.5.x. Thanks!
Committed 87e6164 and pushed to 9.4.x. Thanks!