File tree Expand file tree Collapse file tree 10 files changed +15
-13
lines changed
CatalogInventory/Model/Indexer/Stock/Action
CatalogRule/Model/ResourceModel
SalesRule/Model/ResourceModel
Controller/Adminhtml/Creditmemo/AbstractCreditmemo Expand file tree Collapse file tree 10 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,7 @@ private function getCollectionProcessor()
813
813
{
814
814
if (!$ this ->collectionProcessor ) {
815
815
$ this ->collectionProcessor = \Magento \Framework \App \ObjectManager::getInstance ()->get (
816
- // phpstan: ignore "Class Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor not found."
816
+ // @ phpstan- ignore-next-line - this is a virtual type defined in di.xml
817
817
\Magento \Catalog \Model \Api \SearchCriteria \ProductCollectionProcessor::class
818
818
);
819
819
}
Original file line number Diff line number Diff line change 12
12
13
13
use Magento \Catalog \Api \Data \ProductInterface ;
14
14
use Magento \Catalog \Model \ResourceModel \Indexer \ActiveTableSwitcher ;
15
- use Magento \CatalogInventory \Model \Indexer \Stock \BatchSizeManagement ;
16
15
use Magento \CatalogInventory \Model \ResourceModel \Indexer \Stock \DefaultStock ;
17
16
use Magento \Framework \App \ResourceConnection ;
18
17
use Magento \CatalogInventory \Model \ResourceModel \Indexer \StockFactory ;
@@ -125,7 +124,7 @@ public function __construct(
125
124
$ this ->metadataPool = $ metadataPool ?: ObjectManager::getInstance ()->get (MetadataPool::class);
126
125
$ this ->batchProvider = $ batchProvider ?: ObjectManager::getInstance ()->get (BatchProviderInterface::class);
127
126
$ this ->batchSizeManagement = $ batchSizeManagement ?: ObjectManager::getInstance ()->get (
128
- BatchSizeManagement ::class
127
+ BatchSizeManagementInterface ::class
129
128
);
130
129
$ this ->batchRowsCount = $ batchRowsCount ;
131
130
$ this ->activeTableSwitcher = $ activeTableSwitcher ?: ObjectManager::getInstance ()
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ public function __construct(
129
129
$ this ->priceCurrency = $ priceCurrency ;
130
130
$ this ->entityManager = $ entityManager ?? ObjectManager::getInstance ()->get (EntityManager::class);
131
131
$ this ->_associatedEntitiesMap = $ associatedEntityMap ?? ObjectManager::getInstance ()
132
- // phpstan: ignore this is a virtual class
132
+ // @ phpstan- ignore-next-line - this is a virtual type defined in di.xml
133
133
->get (\Magento \CatalogRule \Model \ResourceModel \Rule \AssociatedEntityMap::class)
134
134
->getData ();
135
135
parent ::__construct ($ context , $ connectionName );
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ private function getAssociatedEntitiesMap()
164
164
{
165
165
if (!$ this ->_associatedEntitiesMap ) {
166
166
$ this ->_associatedEntitiesMap = \Magento \Framework \App \ObjectManager::getInstance ()
167
- // phpstan: ignore
167
+ // @ phpstan- ignore-next-line - this is a virtual type defined in di.xml
168
168
->get (\Magento \CatalogRule \Model \ResourceModel \Rule \AssociatedEntityMap::class)
169
169
->getData ();
170
170
}
Original file line number Diff line number Diff line change @@ -289,9 +289,8 @@ public function deleteById($pageId)
289
289
private function getCollectionProcessor ()
290
290
{
291
291
if (!$ this ->collectionProcessor ) {
292
- // phpstan:ignore "Class Magento\Cms\Model\Api\SearchCriteria\PageCollectionProcessor not found."
293
- $ this ->collectionProcessor = ObjectManager::getInstance ()
294
- ->get (PageCollectionProcessor::class);
292
+ // @phpstan-ignore-next-line - this is a virtual type defined in di.xml
293
+ $ this ->collectionProcessor = ObjectManager::getInstance ()->get (PageCollectionProcessor::class);
295
294
}
296
295
return $ this ->collectionProcessor ;
297
296
}
Original file line number Diff line number Diff line change @@ -57,9 +57,13 @@ public function execute(EventObserver $observer)
57
57
SmartButton::class => PaypalConfig::METHOD_WPS_EXPRESS ,
58
58
\Magento \Paypal \Block \Express \Shortcut::class => PaypalConfig::METHOD_WPP_EXPRESS ,
59
59
\Magento \Paypal \Block \Bml \Shortcut::class => PaypalConfig::METHOD_WPP_EXPRESS ,
60
+ // @phpstan-ignore-next-line - this is a virtual type defined in di.xml
60
61
\Magento \Paypal \Block \WpsExpress \Shortcut::class => PaypalConfig::METHOD_WPS_EXPRESS ,
62
+ // @phpstan-ignore-next-line - this is a virtual type defined in di.xml
61
63
\Magento \Paypal \Block \WpsBml \Shortcut::class => PaypalConfig::METHOD_WPS_EXPRESS ,
64
+ // @phpstan-ignore-next-line - this is a virtual type defined in di.xml
62
65
\Magento \Paypal \Block \PayflowExpress \Shortcut::class => PaypalConfig::METHOD_WPP_PE_EXPRESS ,
66
+ // @phpstan-ignore-next-line - this is a virtual type defined in di.xml
63
67
\Magento \Paypal \Block \Payflow \Bml \Shortcut::class => PaypalConfig::METHOD_WPP_PE_EXPRESS
64
68
];
65
69
foreach ($ blocks as $ blockInstanceName => $ paymentMethodCode ) {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function execute()
73
73
$ fileContent = ['type ' => 'string ' , 'value ' => $ pdf ->render (), 'rm ' => true ];
74
74
75
75
return $ this ->_fileFactory ->create (
76
- \ creditmemo::class . $ date . '.pdf ' ,
76
+ ' creditmemo ' . $ date . '.pdf ' ,
77
77
$ fileContent ,
78
78
DirectoryList::VAR_DIR ,
79
79
'application/pdf '
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ReorderTest extends TestCase
31
31
protected $ scopeConfigMock ;
32
32
33
33
/**
34
- * @var MockObject|\Magento\Sales \Model\Store
34
+ * @var MockObject|\Magento\Store \Model\Store
35
35
*/
36
36
protected $ storeParam ;
37
37
@@ -78,7 +78,7 @@ protected function setUp(): void
78
78
$ this ->repositoryMock
79
79
);
80
80
81
- $ this ->storeParam = $ this ->getMockBuilder (\Magento \Sales \Model \Store::class)
81
+ $ this ->storeParam = $ this ->getMockBuilder (\Magento \Store \Model \Store::class)
82
82
->disableOriginalConstructor ()
83
83
->getMock ();
84
84
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function __construct(
84
84
$ this ->string = $ string ;
85
85
$ this ->_resourceCoupon = $ resourceCoupon ;
86
86
$ associatedEntitiesMapInstance = $ associatedEntityMapInstance ?: ObjectManager::getInstance ()->get (
87
- // phpstan: ignore "Class Magento\SalesRule\Model\ResourceModel\Rule\AssociatedEntityMap not found."
87
+ // @ phpstan- ignore-next-line - this is a virtual type defined in di.xml
88
88
\Magento \SalesRule \Model \ResourceModel \Rule \AssociatedEntityMap::class
89
89
);
90
90
$ this ->_associatedEntitiesMap = $ associatedEntitiesMapInstance ->getData ();
Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ private function getAssociatedEntitiesMap()
463
463
{
464
464
if (!$ this ->_associatedEntitiesMap ) {
465
465
$ this ->_associatedEntitiesMap = \Magento \Framework \App \ObjectManager::getInstance ()
466
- // phpstan: ignore "Class Magento\SalesRule\Model\ResourceModel\Rule\AssociatedEntityMap not found."
466
+ // @ phpstan- ignore-next-line - this is a virtual type defined in di.xml
467
467
->get (\Magento \SalesRule \Model \ResourceModel \Rule \AssociatedEntityMap::class)
468
468
->getData ();
469
469
}
You can’t perform that action at this time.
0 commit comments