Fix phpstan errors in UpdatePathTestTrait

Created on 10 June 2025, about 1 month ago

Problem/Motivation

When adding a new test that uses Drupal\Tests\UpdatePathTestTrait 10 new phpstan errors are thrown for that test because of missing return types. This means the baseline will continue to grow as new tests use this trait.

E.g https://git.drupalcode.org/issue/drupal-3529274/-/jobs/5520794

Steps to reproduce

Add a new test that uses the trait

Proposed resolution

Add return types, tidy up baseline

Remaining tasks

Do it

API changes

Added return types to UpdateTestTrait - should be no BC concerns here.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

phpunit

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024