Skip to content

Commit 44e406d

Browse files
committed
phpstan baseline
1 parent 4d3a4bd commit 44e406d

File tree

1 file changed

+8
-38
lines changed

1 file changed

+8
-38
lines changed

.phpstan.dist.baseline.neon

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ parameters:
9090
count: 2
9191
path: app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
9292

93-
-
94-
rawMessage: If condition is always true.
95-
identifier: if.alwaysTrue
96-
count: 1
97-
path: app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
98-
9993
-
10094
rawMessage: 'Call to an undefined method Mage_Api_Model_Resource_Roles_User_Collection::setUserFilter().'
10195
identifier: method.notFound
@@ -1146,12 +1140,6 @@ parameters:
11461140
count: 16
11471141
path: app/code/core/Mage/Adminhtml/controllers/Sales/Order/ShipmentController.php
11481142

1149-
-
1150-
rawMessage: Negated boolean expression is always false.
1151-
identifier: booleanNot.alwaysFalse
1152-
count: 1
1153-
path: app/code/core/Mage/Adminhtml/controllers/Sales/Order/ShipmentController.php
1154-
11551143
-
11561144
rawMessage: 'Parameter #2 $callback of function array_filter expects (callable(mixed): bool)|null, Closure(array|bool|float|int|resource|string|null, int=): int given.'
11571145
identifier: argument.type
@@ -1164,6 +1152,12 @@ parameters:
11641152
count: 4
11651153
path: app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php
11661154

1155+
-
1156+
rawMessage: Variable $order might not be defined.
1157+
identifier: variable.undefined
1158+
count: 1
1159+
path: app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php
1160+
11671161
-
11681162
rawMessage: Dead catch - Exception is never thrown in the try block.
11691163
identifier: catch.neverThrown
@@ -1332,12 +1326,6 @@ parameters:
13321326
count: 1
13331327
path: app/code/core/Mage/Api/Model/Roles.php
13341328

1335-
-
1336-
rawMessage: 'Call to an undefined method Mage_Api_Model_Resource_Rules::update().'
1337-
identifier: method.notFound
1338-
count: 1
1339-
path: app/code/core/Mage/Api/Model/Rules.php
1340-
13411329
-
13421330
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
13431331
identifier: empty.notAllowed
@@ -4632,12 +4620,6 @@ parameters:
46324620
count: 1
46334621
path: app/code/core/Mage/Dataflow/Model/Profile.php
46344622

4635-
-
4636-
rawMessage: Variable $fields might not be defined.
4637-
identifier: variable.undefined
4638-
count: 1
4639-
path: app/code/core/Mage/Dataflow/Model/Session/Parser/Csv.php
4640-
46414623
-
46424624
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
46434625
identifier: empty.notAllowed
@@ -6567,7 +6549,7 @@ parameters:
65676549
-
65686550
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
65696551
identifier: empty.notAllowed
6570-
count: 9
6552+
count: 6
65716553
path: app/code/core/Mage/Sales/Model/Order.php
65726554

65736555
-
@@ -6576,12 +6558,6 @@ parameters:
65766558
count: 1
65776559
path: app/code/core/Mage/Sales/Model/Order/Config.php
65786560

6579-
-
6580-
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
6581-
identifier: empty.notAllowed
6582-
count: 1
6583-
path: app/code/core/Mage/Sales/Model/Order/Creditmemo.php
6584-
65856561
-
65866562
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
65876563
identifier: empty.notAllowed
@@ -6597,7 +6573,7 @@ parameters:
65976573
-
65986574
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
65996575
identifier: empty.notAllowed
6600-
count: 3
6576+
count: 1
66016577
path: app/code/core/Mage/Sales/Model/Order/Invoice.php
66026578

66036579
-
@@ -6672,12 +6648,6 @@ parameters:
66726648
count: 1
66736649
path: app/code/core/Mage/Sales/Model/Order/Pdf/Total/Default.php
66746650

6675-
-
6676-
rawMessage: 'Construct empty() is not allowed. Use more strict comparison.'
6677-
identifier: empty.notAllowed
6678-
count: 2
6679-
path: app/code/core/Mage/Sales/Model/Order/Shipment.php
6680-
66816651
-
66826652
rawMessage: 'Call to an undefined method Mage_Eav_Model_Entity_Abstract::getStoreId().'
66836653
identifier: method.notFound

0 commit comments

Comments
 (0)