Add phpstan/phpstan-phpunit as a dev dependency

Created on 9 December 2022, over 1 year ago
Updated 30 March 2023, about 1 year ago

Problem/Motivation

Add phpstan/phpstan-phpunit as a dev dependency would reduce the PHPStan L2 errors by approx 1k false positives due to missing interpretation of mocks.

Shorter term, right now it identifies a significant (215) number of errors in test code already.

Proposed resolution

  • Add dependency
  • Fix, ignore or baseline errors
  • Commit

Dependency evaluation

Maintainership: Primary author is Ondล™ej Mirtes, also the author of PHPStan. The author is responsive to issues and pull requests.

Security policy: https://github.com/phpstan/phpstan-phpunit/security/policy (see also : https://github.com/phpstan/phpstan-phpunit/issues/161).

Release cycle: Not as regular or prolific as PHPStan itself, but still several releases this year - more is not expected given that it is a much smaller target that PHPStan itself, and PHPUnit is fairly stable so it does not need to chase a moving target.

Other dependencies: None (except PHPStan and PHPUnit, obviously)

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.1 โœจ

Component
Baseย  โ†’

Last updated about 1 hour ago

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

Live updates comments and jobs are added and updated live.
  • Needs release manager review

    It is used to alert the release manager core committer(s) that an issue significantly affects the overall technical debt or release timeline of Drupal, and their signoff is needed. See the governance policy draft for more information.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024