Skip to content

Commit

Permalink
[TASK] Update PHPStan to 1.6.3
Browse files Browse the repository at this point in the history
The new version finds some new possible bugs.

Used commands:

> composer require --dev phpstan/phpstan:^1.6.3
> Build/Scripts/runTests.sh -s phpstanGenerateBaseline

Resolves: #97508
Releases: main, 11.5
Change-Id: I7a813c4f12258aad96b99cec3feb93ee10d55bcf
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74481
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Elias Häußler <e.haeussler@familie-redlich.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Stefan Bürk <stefan@buerk.tech>
  • Loading branch information
tmotyl authored and sbuerk committed Apr 28, 2022
1 parent 2e5d092 commit bbc8676
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Build/phpstan/phpstan-baseline.neon
Expand Up @@ -4220,6 +4220,11 @@ parameters:
count: 2
path: ../../typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFalse\\(\\) with string will always evaluate to false\\.$#"
count: 1
path: ../../typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php

-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with 5 and string will always evaluate to false\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -111,7 +111,7 @@
"php-webdriver/webdriver": "^1.12.0",
"phpspec/prophecy": "^1.15.0",
"phpspec/prophecy-phpunit": "^2.0.1",
"phpstan/phpstan": "^1.6.0",
"phpstan/phpstan": "^1.6.3",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpunit/phpunit": "^9.5.20",
"typo3/cms-styleguide": "~12.0@dev",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bbc8676

Please sign in to comment.