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

Issue fork drupal-3283794

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Assigned: mondrake » Unassigned
Issue summary: View changes
Status: Active » Needs review
daffie’s picture

Status: Needs review » Reviewed & tested by the community

All 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.

mondrake’s picture

rebased

mondrake’s picture

Issue tags: +Needs reroll

Needs reroll

mondrake’s picture

Status: Reviewed & tested by the community » Needs work

longwave made their first commit to this issue’s fork.

longwave’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
mondrake’s picture

Status: Needs review » Reviewed & tested by the community

back to rtbc

alexpott’s picture

Version: 10.0.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed 386d79e and pushed to 10.0.x. Thanks!

We should backport the test changes to make backports of bugfixes simpler.

  • alexpott committed 386d79e on 10.0.x
    Issue #3283794 by mondrake, longwave: Fix 'should return {type} but...
longwave’s picture

Status: Patch (to be ported) » Needs review
FileSize
64.53 KB
longwave’s picture

This patch is smaller because UserRegistrationRestTest does not exist in 9.3.x.

mondrake’s picture

Status: Needs review » Reviewed & tested by the community

Thanks.

alexpott’s picture

Thanks @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.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 9b485ec74d to 9.5.x and a9dae8af9e to 9.4.x. Thanks!

Backported to 9.4.x as this is test only.

  • alexpott committed 9b485ec on 9.5.x
    Issue #3283794 by mondrake, longwave: Fix 'should return {type} but...

  • alexpott committed a9dae8a on 9.4.x
    Issue #3283794 by mondrake, longwave: Fix 'should return {type} but...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.