Skip to content
Snippets Groups Projects
Commit edbcda8d authored by Oliver Klee's avatar Oliver Klee Committed by Christian Kuhn
Browse files

[TASK] Add PHPStan plugin for PHPUnit

Adding phpstan/phpstan-phpunit makes phpstan
"understand" mocking and a couple of related things.

Loading the extension in phpstan.neon reduces removes
a bunch of PHPStan warnings, makes others more specific,
and adds new warnings for some PHPUnit-specific issues.

> composer require --dev phpstan/phpstan-phpunit:^1.0

Resolves: #96690
Releases: main, 11.5
Change-Id: Ib77f18f9492c3891b46d213b4f3981be1ac21c1a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73221


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 1e25b63a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment