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
We have currenlty baselined PHPStan #method.*should return .* but return statement is missing#
errors.
Proposed resolution
In this issue, fix the error in test classes and test modules, and cleanup the baseline.
Remaining tasks
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#14 | 3283794-14-9.3.x.patch | 63.47 KB | longwave |
#13 | 3283794-13-9.4.x.patch | 64.53 KB | longwave |
Issue fork drupal-3283794
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:
- 3283794-fix-should-return changes, plain diff MR !2351
Comments
Comment #3
mondrakeComment #4
daffie CreditAttribution: daffie commentedAll the changes look good to me.
The return type changes are only in tests.
The phpstan-baseline.neon is significantly smaller!
For me it is RTBC.
Comment #5
mondrakerebased
Comment #6
mondrakeNeeds reroll
Comment #7
mondrakeComment #9
longwaveComment #10
mondrakeback to rtbc
Comment #11
alexpottCommitted 386d79e and pushed to 10.0.x. Thanks!
We should backport the test changes to make backports of bugfixes simpler.
Comment #13
longwaveComment #14
longwaveThis patch is smaller because UserRegistrationRestTest does not exist in 9.3.x.
Comment #15
mondrakeThanks.
Comment #17
alexpottThanks @longwave. Will commit this to 9.5.x / 9.4.x once 9.4.0 is out. Currently in a freeze. 9.3.x is in security issue only mode so this won't go there.
Comment #18
alexpottCommitted and pushed 9b485ec74d to 9.5.x and a9dae8af9e to 9.4.x. Thanks!
Backported to 9.4.x as this is test only.