Problem/Motivation
In #3555692: [November 2026] Replace @legacy-covers method level annotations with @see and prevent new ones from being added, some flaky results were reported when testing with PHPStan this test file.
Proposed resolution
Replace closures with test doubles, and clean baseline.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3635165
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:
- 3635165-resolve-installtaskstest-phpstan
changes, plain diff MR !17680
Comments
Comment #2
mondrakeComment #3
mondrakeComment #5
mondrakeComment #6
mondrakeComment #7
godotislateI don't love that the mocked methods are not matching the document return types, but that's equivalent to what exists. Since this unblocks the PHPStan issues in #3555692: [November 2026] Replace @legacy-covers method level annotations with @see and prevent new ones from being added, lgtm.
Comment #8
godotislateComment #10
catchYep let's get this in and unblock that one, can return to this later.
Committed/pushed to main and 12.0.x, thanks!
Comment #14
mondrake#7 will be solved in #3579258: Fix DebugClassLoader deprecations in database driver modules.