Skip to content

Commit 9f1a13d

Browse files
committed
Updated phpstan-baseline.neon
1 parent cd5bd80 commit 9f1a13d

File tree

1 file changed

+237
-2
lines changed

1 file changed

+237
-2
lines changed

.github/phpstan-baseline.neon

Lines changed: 237 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,36 @@ parameters:
775775
count: 1
776776
path: ../app/code/core/Mage/Adminhtml/controllers/Report/StatisticsController.php
777777

778+
-
779+
message: "#^Method Mage_Adminhtml_Model_Sales_Order_Create\\:\\:moveQuoteItem\\(\\) invoked with 2 parameters, 3 required\\.$#"
780+
count: 1
781+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php
782+
783+
-
784+
message: "#^Method Mage_Adminhtml_Model_Sales_Order_Create\\:\\:resetShippingMethod\\(\\) invoked with 1 parameter, 0 required\\.$#"
785+
count: 1
786+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php
787+
788+
-
789+
message: "#^Return type \\(Mage_Adminhtml_Model_Session_Quote\\) of method Mage_Adminhtml_Sales_Order_CreateController\\:\\:_getSession\\(\\) should be compatible with return type \\(Mage_Adminhtml_Model_Session\\) of method Mage_Adminhtml_Controller_Action\\:\\:_getSession\\(\\)$#"
790+
count: 1
791+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreateController.php
792+
793+
-
794+
message: "#^Call to an undefined method Mage_Sales_Model_Order_Creditmemo\\:\\:void\\(\\)\\.$#"
795+
count: 1
796+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/CreditmemoController.php
797+
798+
-
799+
message: "#^Undefined variable\\: \\$shippingResponse$#"
800+
count: 1
801+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php
802+
803+
-
804+
message: "#^Variable \\$shippingResponse in isset\\(\\) is never defined\\.$#"
805+
count: 1
806+
path: ../app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php
807+
778808
-
779809
message: "#^Method Mage_Adminhtml_Sales_Order_ShipmentController\\:\\:getShippingItemsGridAction\\(\\) should return Mage_Core_Controller_Response_Http but returns Zend_Controller_Response_Abstract\\.$#"
780810
count: 1
@@ -960,6 +990,11 @@ parameters:
960990
count: 1
961991
path: ../app/code/core/Mage/Api/Model/Wsdl/Config/Element.php
962992

993+
-
994+
message: "#^Return type \\(array\\) of method Mage_Api_Model_Wsdl_Config_Element\\:\\:getChildren\\(\\) should be compatible with return type \\(RecursiveIterator\\|null\\) of method RecursiveIterator\\<string,static\\(SimpleXMLElement\\)\\>\\:\\:getChildren\\(\\)$#"
995+
count: 1
996+
path: ../app/code/core/Mage/Api/Model/Wsdl/Config/Element.php
997+
963998
-
964999
message: "#^Return type \\(void\\) of method Mage_Api2_Block_Adminhtml_Attribute_Grid\\:\\:_prepareCollection\\(\\) should be compatible with return type \\(\\$this\\(Mage_Adminhtml_Block_Widget_Grid\\)\\) of method Mage_Adminhtml_Block_Widget_Grid\\:\\:_prepareCollection\\(\\)$#"
9651000
count: 1
@@ -1920,6 +1955,11 @@ parameters:
19201955
count: 1
19211956
path: ../app/code/core/Mage/Catalog/Model/Product/Flat/Indexer.php
19221957

1958+
-
1959+
message: "#^Binary operation \"\\*\" between string and 1024 results in an error\\.$#"
1960+
count: 3
1961+
path: ../app/code/core/Mage/Catalog/Model/Product/Image.php
1962+
19231963
-
19241964
message: "#^Cannot call method isIndexable\\(\\) on Mage_Eav_Model_Entity_Attribute_Abstract\\|false\\.$#"
19251965
count: 1
@@ -1960,16 +2000,61 @@ parameters:
19602000
count: 1
19612001
path: ../app/code/core/Mage/Catalog/Model/Product/Option/Type/File.php
19622002

2003+
-
2004+
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Collection_Abstract\\:\\:getStoreId\\(\\)\\.$#"
2005+
count: 1
2006+
path: ../app/code/core/Mage/Catalog/Model/Product/Status.php
2007+
19632008
-
19642009
message: "#^Method Mage_Catalog_Model_Product_Type\\:\\:priceFactory\\(\\) should return Mage_Catalog_Model_Product_Type_Price but returns Mage_Core_Model_Abstract\\|false\\.$#"
19652010
count: 1
19662011
path: ../app/code/core/Mage/Catalog/Model/Product/Type.php
19672012

2013+
-
2014+
message: "#^Method Mage_Catalog_Model_Product_Type_Abstract\\:\\:getAttributeById\\(\\) should return Mage_Eav_Model_Entity_Attribute_Abstract but returns null\\.$#"
2015+
count: 1
2016+
path: ../app/code/core/Mage/Catalog/Model/Product/Type/Abstract.php
2017+
2018+
-
2019+
message: "#^Method Mage_Catalog_Model_Product_Type_Configurable\\:\\:getProductByAttributes\\(\\) should return Mage_Catalog_Model_Product\\|null but returns Varien_Object\\.$#"
2020+
count: 1
2021+
path: ../app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php
2022+
19682023
-
19692024
message: "#^Cannot access offset 'pricing_value' on true\\.$#"
19702025
count: 1
19712026
path: ../app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Price.php
19722027

2028+
-
2029+
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Attribute_Abstract\\:\\:isScopeStore\\(\\)\\.$#"
2030+
count: 2
2031+
path: ../app/code/core/Mage/Catalog/Model/Resource/Abstract.php
2032+
2033+
-
2034+
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Attribute_Abstract\\:\\:isScopeWebsite\\(\\)\\.$#"
2035+
count: 2
2036+
path: ../app/code/core/Mage/Catalog/Model/Resource/Abstract.php
2037+
2038+
-
2039+
message: "#^Cannot call method isScopeStore\\(\\) on Mage_Eav_Model_Entity_Attribute_Abstract\\|false\\.$#"
2040+
count: 1
2041+
path: ../app/code/core/Mage/Catalog/Model/Resource/Abstract.php
2042+
2043+
-
2044+
message: "#^Cannot call method isScopeWebsite\\(\\) on Mage_Eav_Model_Entity_Attribute_Abstract\\|false\\.$#"
2045+
count: 1
2046+
path: ../app/code/core/Mage/Catalog/Model/Resource/Abstract.php
2047+
2048+
-
2049+
message: "#^Method Mage_Core_Model_Website\\:\\:getStoreIds\\(\\) invoked with 1 parameter, 0 required\\.$#"
2050+
count: 1
2051+
path: ../app/code/core/Mage/Catalog/Model/Resource/Abstract.php
2052+
2053+
-
2054+
message: "#^Method Mage_Catalog_Model_Resource_Attribute\\:\\:isUsedBySuperProducts\\(\\) should return int but returns string\\.$#"
2055+
count: 1
2056+
path: ../app/code/core/Mage/Catalog/Model/Resource/Attribute.php
2057+
19732058
-
19742059
message: "#^Method Mage_Catalog_Model_Resource_Category\\:\\:checkId\\(\\) should return bool but returns string\\.$#"
19752060
count: 1
@@ -2100,6 +2185,16 @@ parameters:
21002185
count: 1
21012186
path: ../app/code/core/Mage/Catalog/Model/Resource/Product.php
21022187

2188+
-
2189+
message: "#^Method Mage_Catalog_Model_Resource_Product_Attribute_Backend_Media\\:\\:insertGallery\\(\\) should return int but returns string\\.$#"
2190+
count: 1
2191+
path: ../app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Media.php
2192+
2193+
-
2194+
message: "#^Method Mage_Catalog_Model_Url\\:\\:refreshProductRewrites\\(\\) invoked with 3 parameters, 1 required\\.$#"
2195+
count: 1
2196+
path: ../app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Urlkey.php
2197+
21032198
-
21042199
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Abstract\\:\\:getAllTableColumns\\(\\)\\.$#"
21052200
count: 1
@@ -2160,6 +2255,16 @@ parameters:
21602255
count: 1
21612256
path: ../app/code/core/Mage/Catalog/Model/Resource/Product/Compare/Item.php
21622257

2258+
-
2259+
message: "#^Method Mage_Catalog_Model_Resource_Product_Flat\\:\\:getTypeId\\(\\) should return int but returns string\\|null\\.$#"
2260+
count: 1
2261+
path: ../app/code/core/Mage/Catalog/Model/Resource/Product/Flat.php
2262+
2263+
-
2264+
message: "#^Comparison operation \"\\>\" between int\\<0, max\\> and Varien_Simplexml_Element\\|false results in an error\\.$#"
2265+
count: 1
2266+
path: ../app/code/core/Mage/Catalog/Model/Resource/Product/Flat/Indexer.php
2267+
21632268
-
21642269
message: "#^Method Mage_Catalog_Model_Resource_Product_Indexer_Abstract\\:\\:_getAttribute\\(\\) should return Mage_Catalog_Model_Resource_Eav_Attribute but returns Mage_Eav_Model_Entity_Attribute_Abstract\\|false\\.$#"
21652270
count: 1
@@ -2245,6 +2350,16 @@ parameters:
22452350
count: 1
22462351
path: ../app/code/core/Mage/CatalogIndex/Model/Data/Virtual.php
22472352

2353+
-
2354+
message: "#^Variable \\$kill in isset\\(\\) always exists and is not nullable\\.$#"
2355+
count: 1
2356+
path: ../app/code/core/Mage/CatalogIndex/Model/Indexer.php
2357+
2358+
-
2359+
message: "#^Variable \\$storeObject might not be defined\\.$#"
2360+
count: 2
2361+
path: ../app/code/core/Mage/CatalogIndex/Model/Indexer.php
2362+
22482363
-
22492364
message: "#^Return type \\(string\\) of method Mage_CatalogIndex_Model_Indexer_Eav\\:\\:_getIndexableAttributeConditions\\(\\) should be compatible with return type \\(array\\) of method Mage_CatalogIndex_Model_Indexer_Abstract\\:\\:_getIndexableAttributeConditions\\(\\)$#"
22502365
count: 1
@@ -2260,6 +2375,11 @@ parameters:
22602375
count: 1
22612376
path: ../app/code/core/Mage/CatalogIndex/Model/Resource/Indexer/Abstract.php
22622377

2378+
-
2379+
message: "#^Binary operation \"\\*\" between string and float results in an error\\.$#"
2380+
count: 1
2381+
path: ../app/code/core/Mage/CatalogIndex/Model/Resource/Price.php
2382+
22632383
-
22642384
message: "#^Method Mage_CatalogIndex_Model_Retreiver\\:\\:getRetreiver\\(\\) should return Mage_CatalogIndex_Model_Data_Abstract but returns Mage_Core_Model_Abstract\\.$#"
22652385
count: 1
@@ -2415,6 +2535,11 @@ parameters:
24152535
count: 1
24162536
path: ../app/code/core/Mage/Checkout/Block/Onepage/Progress.php
24172537

2538+
-
2539+
message: "#^Variable \\$storeId might not be defined\\.$#"
2540+
count: 1
2541+
path: ../app/code/core/Mage/Checkout/Model/Api/Resource.php
2542+
24182543
-
24192544
message: "#^Method Mage_Checkout_Model_Cart\\:\\:saveQuote\\(\\) should return Mage_Checkout_Model_Cart_Interface but return statement is missing\\.$#"
24202545
count: 1
@@ -2505,6 +2630,11 @@ parameters:
25052630
count: 1
25062631
path: ../app/code/core/Mage/Checkout/controllers/CartController.php
25072632

2633+
-
2634+
message: "#^Call to an undefined method Mage_Sales_Model_Service_Order\\:\\:register\\(\\)\\.$#"
2635+
count: 1
2636+
path: ../app/code/core/Mage/Checkout/controllers/OnepageController.php
2637+
25082638
-
25092639
message: "#^Cannot access offset 'cookie' on void\\|true\\.$#"
25102640
count: 1
@@ -2951,7 +3081,7 @@ parameters:
29513081
path: ../app/code/core/Mage/Core/Model/Resource/Setup.php
29523082

29533083
-
2954-
message: "#^Binary operation \"\\.\" between \\(string\\|false\\) and array results in an error\\.$#"
3084+
message: "#^Binary operation \"\\.\" between string and array results in an error\\.$#"
29553085
count: 1
29563086
path: ../app/code/core/Mage/Core/Model/Resource/Setup/Query/Modifier.php
29573087

@@ -3560,6 +3690,26 @@ parameters:
35603690
count: 2
35613691
path: ../app/code/core/Mage/Eav/Model/Entity/Abstract.php
35623692

3693+
-
3694+
message: "#^Call to an undefined method Mage_Core_Model_Resource_Db_Abstract\\:\\:getIdByCode\\(\\)\\.$#"
3695+
count: 1
3696+
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
3697+
3698+
-
3699+
message: "#^Method Mage_Eav_Model_Entity_Attribute_Abstract\\:\\:getFlatUpdateSelect\\(\\) should return \\$this\\(Mage_Eav_Model_Entity_Attribute_Abstract\\)\\|Varien_Db_Select but returns null\\.$#"
3700+
count: 1
3701+
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
3702+
3703+
-
3704+
message: "#^Property Mage_Eav_Model_Entity_Attribute_Abstract\\:\\:\\$_entity \\(Mage_Eav_Model_Entity_Abstract\\) does not accept Mage_Eav_Model_Entity_Type\\.$#"
3705+
count: 1
3706+
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
3707+
3708+
-
3709+
message: "#^Return type \\(\\$this\\(Mage_Eav_Model_Entity_Attribute_Backend_Abstract\\)\\) of method Mage_Eav_Model_Entity_Attribute_Backend_Abstract\\:\\:setValueId\\(\\) should be compatible with return type \\(int\\) of method Mage_Eav_Model_Entity_Attribute_Backend_Interface\\:\\:setValueId\\(\\)$#"
3710+
count: 1
3711+
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Backend/Abstract.php
3712+
35633713
-
35643714
message: "#^Variable \\$out in empty\\(\\) always exists and is not falsy\\.$#"
35653715
count: 1
@@ -3570,6 +3720,11 @@ parameters:
35703720
count: 1
35713721
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Group.php
35723722

3723+
-
3724+
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Collection_Abstract\\:\\:getStoreId\\(\\)\\.$#"
3725+
count: 1
3726+
path: ../app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Table.php
3727+
35733728
-
35743729
message: "#^Call to an undefined method Mage_Eav_Model_Entity_Attribute_Interface\\:\\:getAttributeCode\\(\\)\\.$#"
35753730
count: 1
@@ -4105,6 +4260,16 @@ parameters:
41054260
count: 2
41064261
path: ../app/code/core/Mage/Log/Model/Resource/Log.php
41074262

4263+
-
4264+
message: "#^Method Mage_Media_Model_File_Image\\:\\:getImage\\(\\) should return bool\\|resource but returns GdImage\\.$#"
4265+
count: 1
4266+
path: ../app/code/core/Mage/Media/Model/File/Image.php
4267+
4268+
-
4269+
message: "#^Method Mage_Media_Model_File_Image\\:\\:getTmpImage\\(\\) should return resource but returns GdImage\\|false\\.$#"
4270+
count: 1
4271+
path: ../app/code/core/Mage/Media/Model/File/Image.php
4272+
41084273
-
41094274
message: "#^Property Mage_Media_Model_Image\\:\\:\\$_image \\(resource\\) does not accept null\\.$#"
41104275
count: 1
@@ -4246,7 +4411,7 @@ parameters:
42464411
path: ../app/code/core/Mage/Payment/Model/Method/Abstract.php
42474412

42484413
-
4249-
message: "#^Binary operation \"\\-\" between string and int\\<\\-9, 9\\> results in an error\\.$#"
4414+
message: "#^Binary operation \"\\*\\=\" between string and 2 results in an error\\.$#"
42504415
count: 1
42514416
path: ../app/code/core/Mage/Payment/Model/Method/Cc.php
42524417

@@ -4370,6 +4535,46 @@ parameters:
43704535
count: 1
43714536
path: ../app/code/core/Mage/Paypal/Model/Direct.php
43724537

4538+
-
4539+
message: "#^Call to an undefined method Mage_Payment_Model_Info\\:\\:lookupTransaction\\(\\)\\.$#"
4540+
count: 2
4541+
path: ../app/code/core/Mage/Paypal/Model/Express.php
4542+
4543+
-
4544+
message: "#^Method Mage_Paypal_Model_Express\\:\\:assignData\\(\\) should return Mage_Payment_Model_Info but returns \\$this\\(Mage_Paypal_Model_Express\\)\\.$#"
4545+
count: 1
4546+
path: ../app/code/core/Mage/Paypal/Model/Express.php
4547+
4548+
-
4549+
message: "#^Property Mage_Paypal_Model_Express\\:\\:\\$_pro \\(Mage_Paypal_Model_Pro\\) does not accept Mage_Core_Model_Abstract\\|false\\.$#"
4550+
count: 1
4551+
path: ../app/code/core/Mage/Paypal/Model/Express.php
4552+
4553+
-
4554+
message: "#^Return type \\(Mage_Payment_Model_Info\\) of method Mage_Paypal_Model_Express\\:\\:assignData\\(\\) should be compatible with return type \\(\\$this\\(Mage_Payment_Model_Method_Abstract\\)\\) of method Mage_Payment_Model_Method_Abstract\\:\\:assignData\\(\\)$#"
4555+
count: 1
4556+
path: ../app/code/core/Mage/Paypal/Model/Express.php
4557+
4558+
-
4559+
message: "#^Cannot call method getData\\(\\) on array\\.$#"
4560+
count: 2
4561+
path: ../app/code/core/Mage/Paypal/Model/Express/Checkout.php
4562+
4563+
-
4564+
message: "#^Cannot call method getExportedKeys\\(\\) on array\\.$#"
4565+
count: 2
4566+
path: ../app/code/core/Mage/Paypal/Model/Express/Checkout.php
4567+
4568+
-
4569+
message: "#^Variable \\$address might not be defined\\.$#"
4570+
count: 1
4571+
path: ../app/code/core/Mage/Paypal/Model/Express/Checkout.php
4572+
4573+
-
4574+
message: "#^Variable \\$shippingAddress might not be defined\\.$#"
4575+
count: 1
4576+
path: ../app/code/core/Mage/Paypal/Model/Express/Checkout.php
4577+
43734578
-
43744579
message: "#^Method Mage_Paypal_Model_Hostedpro\\:\\:initialize\\(\\) should return \\$this\\(Mage_Paypal_Model_Hostedpro\\) but return statement is missing\\.$#"
43754580
count: 1
@@ -4445,6 +4650,11 @@ parameters:
44454650
count: 1
44464651
path: ../app/code/core/Mage/Paypal/Model/Standard.php
44474652

4653+
-
4654+
message: "#^Method Varien_Data_Collection\\:\\:toOptionArray\\(\\) invoked with 1 parameter, 0 required\\.$#"
4655+
count: 1
4656+
path: ../app/code/core/Mage/Paypal/Model/System/Config/Source/BuyerCountry.php
4657+
44484658
-
44494659
message: "#^Method Varien_Data_Collection\\:\\:toOptionArray\\(\\) invoked with 1 parameter, 0 required\\.$#"
44504660
count: 1
@@ -4830,6 +5040,11 @@ parameters:
48305040
count: 1
48315041
path: ../app/code/core/Mage/Sales/Block/Recurring/Profiles.php
48325042

5043+
-
5044+
message: "#^Access to undefined constant Mage_Sales_Model_Api2_Order_Comment_Rest_Admin_V1\\:\\:PARAM_COMMENT_ID\\.$#"
5045+
count: 1
5046+
path: ../app/code/core/Mage/Sales/Model/Api2/Order/Comment/Rest/Admin/V1.php
5047+
48335048
-
48345049
message: "#^Call to an undefined method Varien_Simplexml_Element\\:\\:getClassName\\(\\)\\.$#"
48355050
count: 1
@@ -5540,6 +5755,26 @@ parameters:
55405755
count: 1
55415756
path: ../app/code/core/Mage/Tax/Model/Sales/Total/Quote/Tax.php
55425757

5758+
-
5759+
message: "#^Binary operation \"\\*\" between string and 1024 results in an error\\.$#"
5760+
count: 1
5761+
path: ../app/code/core/Mage/Uploader/Helper/File.php
5762+
5763+
-
5764+
message: "#^Binary operation \"\\*\" between string and 1048576 results in an error\\.$#"
5765+
count: 1
5766+
path: ../app/code/core/Mage/Uploader/Helper/File.php
5767+
5768+
-
5769+
message: "#^Binary operation \"\\*\" between string and 1073741824 results in an error\\.$#"
5770+
count: 1
5771+
path: ../app/code/core/Mage/Uploader/Helper/File.php
5772+
5773+
-
5774+
message: "#^Binary operation \"\\*\" between string and 1099511627776 results in an error\\.$#"
5775+
count: 1
5776+
path: ../app/code/core/Mage/Uploader/Helper/File.php
5777+
55435778
-
55445779
message: "#^Method Mage_Widget_Block_Adminhtml_Widget_Chooser\\:\\:getConfig\\(\\) should return Varien_Object but returns mixed\\.$#"
55455780
count: 2

0 commit comments

Comments
 (0)