Skip to content

Commit f218610

Browse files
committed
[TASK] Use phpstan-typo3 ^2.x
Refs #1314
1 parent 7ec3d7d commit f218610

2 files changed

Lines changed: 31 additions & 7 deletions

File tree

.Build/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@
2525
"typo3/cms-extensionmanager": "^13.4",
2626
"typo3/testing-framework": "^9.0",
2727
"friendsofphp/php-cs-fixer": "^3.12.0",
28-
"saschaegerer/phpstan-typo3": "^1.8.3",
28+
"saschaegerer/phpstan-typo3": "^2.1.1",
2929
"phpstan/extension-installer": "^1.1",
30-
"jangregor/phpstan-prophecy": "^1.0",
3130
"codeception/codeception": "^5.0",
3231
"codeception/module-webdriver": "^4.0",
3332
"koehnlein/codeception-email-mailpit": "^0.3.0",

.Build/phpstan/phpstan-baseline.neon

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ parameters:
2525
count: 1
2626
path: ../../Classes/Validation/Validator/CaptchaValidator.php
2727

28-
-
29-
message: "#^Cannot access offset 'tx_sfeventmgt…' on array\\|object\\.$#"
30-
count: 1
31-
path: ../../Classes/Validation/Validator/RegistrationValidator.php
32-
3328
-
3429
message: "#^Cannot access offset string on array\\|object\\.$#"
3530
count: 1
@@ -44,3 +39,33 @@ parameters:
4439
message: "#^Cannot access offset string on array\\|object\\.$#"
4540
count: 1
4641
path: ../../Classes/ViewHelpers/Registration/Field/PrefillMultiValueFieldViewHelper.php
42+
43+
-
44+
message: '#^Method DERHANSEN\\SfEventMgt\\Controller\\AbstractController\:\:overwriteEventDemandObject\(\) should return DERHANSEN\\SfEventMgt\\Domain\\Model\\Dto\\EventDemand but returns array\|object\.$#'
45+
identifier: return.type
46+
count: 1
47+
path: ../../Classes/Controller/AbstractController.php
48+
49+
-
50+
message: '#^Comparison operation "\<\=" between \*NEVER\* and 90 results in an error\.$#'
51+
identifier: smallerOrEqual.invalid
52+
count: 1
53+
path: ../../Classes/Evaluation/LatitudeEvaluator.php
54+
55+
-
56+
message: '#^Comparison operation "\>\=" between \*NEVER\* and \-90 results in an error\.$#'
57+
identifier: greaterOrEqual.invalid
58+
count: 1
59+
path: ../../Classes/Evaluation/LatitudeEvaluator.php
60+
61+
-
62+
message: '#^Comparison operation "\<\=" between \*NEVER\* and 180 results in an error\.$#'
63+
identifier: smallerOrEqual.invalid
64+
count: 1
65+
path: ../../Classes/Evaluation/LongitudeEvaluator.php
66+
67+
-
68+
message: '#^Comparison operation "\>\=" between \*NEVER\* and \-180 results in an error\.$#'
69+
identifier: greaterOrEqual.invalid
70+
count: 1
71+
path: ../../Classes/Evaluation/LongitudeEvaluator.php

0 commit comments

Comments
 (0)