Skip to content

Commit 45e408f

Browse files
committed
updated to phpstan v2.1
1 parent ff364d3 commit 45e408f

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

.phpstan.dist.baseline.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4950,6 +4950,12 @@ parameters:
49504950
count: 1
49514951
path: app/code/core/Mage/Payment/Model/Method/Abstract.php
49524952

4953+
-
4954+
message: '#^Loose comparison using \!\= between ''''\|''OT'' and ''SS'' will always evaluate to true\.$#'
4955+
identifier: notEqual.alwaysTrue
4956+
count: 1
4957+
path: app/code/core/Mage/Payment/Model/Method/Cc.php
4958+
49534959
-
49544960
message: '#^Method Mage_Payment_Model_Recurring_Profile\:\:exportStartDatetime\(\) should return string\|Zend_Date but empty return statement found\.$#'
49554961
identifier: return.empty
@@ -5148,6 +5154,12 @@ parameters:
51485154
count: 1
51495155
path: app/code/core/Mage/Paypal/Model/Payflowlink.php
51505156

5157+
-
5158+
message: '#^Loose comparison using \!\= between float and \(float\|false\) will always evaluate to false\.$#'
5159+
identifier: notEqual.alwaysFalse
5160+
count: 1
5161+
path: app/code/core/Mage/Paypal/Model/Payflowpro.php
5162+
51515163
-
51525164
message: '#^Parameter \#1 \$payment of method Mage_Paypal_Model_Payflowpro\:\:_buildBasicRequest\(\) expects Mage_Sales_Model_Order_Payment, Mage_Payment_Model_Info given\.$#'
51535165
identifier: argument.type

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
"ext-xmlreader": "*",
5050
"composer/composer": "^2.7",
5151
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
52-
"friendsofphp/php-cs-fixer": "^3.4",
53-
"macopedia/phpstan-magento1": "^1.0.5",
52+
"friendsofphp/php-cs-fixer": "^3.6",
53+
"macopedia/phpstan-magento1": "^1.1",
5454
"magento-ecg/coding-standard": "^4.5",
5555
"openmage/dev-meta-package": "^1.0.5",
5656
"perftools/php-profiler": "^1.1",
5757
"phpcompatibility/php-compatibility": "^9.3",
5858
"phpmd/phpmd": "^2.13",
59-
"phpstan/phpstan": "^2.0.4",
60-
"phpunit/phpunit": "^9.5",
61-
"rector/rector": "^2.0",
59+
"phpstan/phpstan": "^2.1",
60+
"phpunit/phpunit": "^9.6",
61+
"rector/rector": "^2.0.5",
6262
"squizlabs/php_codesniffer": "^3.7",
6363
"symplify/vendor-patches": "^11.1"
6464
},

composer.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)