Skip to content
Snippets Groups Projects
Commit 41e8f282 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Avoid phpstan 'PHPDoc tag @var has invalid value' errors

Annotations are sometimes:
/** @var $foo MyType */
But should be:
/** @var MyType $foo */

The patch fixes this in all tests: getMock() and
createMock() need no annotation at all (both phpstan and
phpstorm understand this), getAccessibleMock() currently
needs an annotation and then sometimes mumbles about
obsolete arguments for _call(), which can be adapted
with another patch.

Resolves: #96692
Releases: main, 11.5
Change-Id: I07032e60805a1dc80dc048ae6996d8bb53b0c2e9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73224


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 2c359feb
Branches
Tags
No related merge requests found
Showing
with 80 additions and 990 deletions
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