Skip to content

Commit 5726b2e

Browse files
authored
Merge pull request #313 from magento-gl/Hammer_Release_Regression_Issues_25Jan22
AC-7790:PHP8.2 - Integration Failures/Unit Failures
2 parents d0b553f + 3e8f4c8 commit 5726b2e

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

InventoryCatalog/Plugin/CatalogInventory/Model/ResourceModel/Stock/Status/AdaptAddIsInStockFilterToCollectionPlugin.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@
1616
/**
1717
* Adapt adding is in stock filter to collection for multi stocks.
1818
*/
19+
#[\AllowDynamicProperties]
1920
class AdaptAddIsInStockFilterToCollectionPlugin
2021
{
2122
/**
2223
* @var GetStockIdForCurrentWebsite
2324
*/
24-
private $getStockIdForCurrentWebsite;
25+
private GetStockIdForCurrentWebsite $getStockIdForCurrentWebsite;
2526

2627
/**
2728
* @var AddIsInStockFilterToCollection
2829
*/
29-
private $addIsInStockFilterToCollection;
30+
private AddIsInStockFilterToCollection $addIsInStockFilterToCollection;
31+
32+
/**
33+
* @var DefaultStockProviderInterface
34+
*/
35+
private DefaultStockProviderInterface $defaultStockProvider;
3036

3137
/**
3238
* @param GetStockIdForCurrentWebsite $getStockIdForCurrentWebsite

InventoryShipping/Test/Integration/SourceDeductionForConfigurableProductsOnDefaultStockTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\InventoryShipping\Test\Integration;
99

1010
use Magento\Framework\Api\SearchCriteriaBuilder;
11+
use Magento\Framework\ObjectManagerInterface;
1112
use Magento\Inventory\Model\SourceItem\Command\Handler\SourceItemsSaveHandler;
1213
use Magento\Sales\Api\Data\OrderInterface;
1314
use Magento\Sales\Api\OrderRepositoryInterface;
@@ -56,6 +57,16 @@ class SourceDeductionForConfigurableProductsOnDefaultStockTest extends TestCase
5657
*/
5758
private $sourceItemsSaveHandler;
5859

60+
/**
61+
* @var ObjectManagerInterface
62+
*/
63+
private $objectManager;
64+
65+
/**
66+
* @var ShipmentRepositoryInterface
67+
*/
68+
private $shipmentRepository;
69+
5970
protected function setUp(): void
6071
{
6172
$this->objectManager = Bootstrap::getObjectManager();

0 commit comments

Comments
 (0)