Skip to content

Commit

Permalink
[TASK] Update to PHPStan 1.9.12
Browse files Browse the repository at this point in the history
The new version finds some more potential problems.

> composer req --dev phpstan/phpstan:^1.9.12
> ./Build/Scripts/runTests.sh -s phpstanGenerateBaseline

Resolves: #99573
Releases: main, 11.5
Change-Id: Ieee3a5881a854946cb180965e4f182b27ea05aaf
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77419
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
oliverklee authored and lolli42 committed Jan 17, 2023
1 parent 2b90e99 commit 81f4051
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
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ parameters:
count: 1
path: ../../typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php

-
message: "#^Binary operation \"&\" between string and int\\<1, max\\> results in an error\\.$#"
count: 1
path: ../../typo3/sysext/core/Classes/DataHandling/DataHandler.php

-
message: "#^Binary operation \"\\*\\=\" between non\\-falsy\\-string and \\-1 results in an error\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"friendsofphp/php-cs-fixer": "^3.12.0",
"friendsoftypo3/phpstan-typo3": "^0.9.0",
"php-webdriver/webdriver": "^1.13.0",
"phpstan/phpstan": "^1.9.5",
"phpstan/phpstan": "^1.9.12",
"phpstan/phpstan-phpunit": "^1.3.3",
"phpunit/phpunit": "^9.5.25",
"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 81f4051

Please sign in to comment.