Skip to content
Snippets Groups Projects
Commit 229e8ca9 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Benni Mack
Browse files

[TASK] Update phpstan to at least 0.12.37

Updating phpstan to version 0.12.37 lets phpstan benefit from
static reflection which does no longer come with the need to
load analyzed classes and use the native reflection api of php.
Instead, roave/better-reflection is used, which does a better
job and reduces false positives.

Since phpstan has been updated, the rules which have been copied
over from the vendor package had to be updated as well.

And since phpstan does find more errors now, a few rules had to
be disabled again.

Used commands:

    - composer require phpstan/phpstan:^0.12.37 --dev
    - composer require friendsoftypo3/phpstan-typo3:^0.4.0 --dev

Releases: master
Resolves: #91635
Change-Id: Ia6b68e7ed1428fbc40ae4d1b9eb3a13d212a3a5c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64851


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent e119ea80
No related merge requests found
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