Skip to content

Commit

Permalink
cia-2.4.8-beta2-develop-2.4-develop-sync-01132025: resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
pawan-adobe-security committed Jan 14, 2025
2 parents 2ddab94 + 7f625de commit 13b9fa2
Show file tree
Hide file tree
Showing 143 changed files with 319 additions and 296 deletions.
8 changes: 4 additions & 4 deletions Inventory/Model/ResourceModel/Source/Collection.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -52,8 +52,8 @@ public function __construct(
FetchStrategyInterface $fetchStrategy,
ManagerInterface $eventManager,
SourceCarrierLinkManagementInterface $sourceCarrierLinkManagement,
AdapterInterface $connection = null,
AbstractDb $resource = null
?AdapterInterface $connection = null,
?AbstractDb $resource = null
) {
parent::__construct(
$entityFactory,
Expand Down
6 changes: 3 additions & 3 deletions Inventory/Model/Source/Command/GetList.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -61,7 +61,7 @@ public function __construct(
/**
* @inheritdoc
*/
public function execute(SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface
public function execute(?SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface
{
/** @var Collection $collection */
$collection = $this->sourceCollectionFactory->create();
Expand Down
7 changes: 4 additions & 3 deletions Inventory/Model/Source/Command/GetListInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand All @@ -24,10 +24,11 @@ interface GetListInterface
{
/**
* Find Sources by given SearchCriteria
*
* SearchCriteria is not required because load all sources is useful case
*
* @param SearchCriteriaInterface|null $searchCriteria
* @return SourceSearchResultsInterface
*/
public function execute(SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface;
public function execute(?SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface;
}
6 changes: 3 additions & 3 deletions Inventory/Model/SourceRepository.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -69,7 +69,7 @@ public function get(string $sourceCode): SourceInterface
/**
* @inheritdoc
*/
public function getList(SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface
public function getList(?SearchCriteriaInterface $searchCriteria = null): SourceSearchResultsInterface
{
return $this->commandGetList->execute($searchCriteria);
}
Expand Down
6 changes: 3 additions & 3 deletions Inventory/Model/Stock/Command/GetList.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -61,7 +61,7 @@ public function __construct(
/**
* @inheritdoc
*/
public function execute(SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface
public function execute(?SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface
{
/** @var Collection $collection */
$collection = $this->stockCollectionFactory->create();
Expand Down
7 changes: 4 additions & 3 deletions Inventory/Model/Stock/Command/GetListInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand All @@ -24,10 +24,11 @@ interface GetListInterface
{
/**
* Find Stocks by given SearchCriteria
*
* SearchCriteria is not required because load all stocks is useful case
*
* @param SearchCriteriaInterface|null $searchCriteria
* @return StockSearchResultsInterface
*/
public function execute(SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface;
public function execute(?SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface;
}
6 changes: 3 additions & 3 deletions Inventory/Model/StockRepository.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -86,7 +86,7 @@ public function deleteById(int $stockId): void
/**
* @inheritdoc
*/
public function getList(SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface
public function getList(?SearchCriteriaInterface $searchCriteria = null): StockSearchResultsInterface
{
return $this->commandGetList->execute($searchCriteria);
}
Expand Down
2 changes: 1 addition & 1 deletion Inventory/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-inventory-api": "*"
},
Expand Down
8 changes: 4 additions & 4 deletions InventoryAdminUi/Controller/Adminhtml/Stock/Save.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -29,7 +29,7 @@ class Save extends Action implements HttpPostActionInterface
/**
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_InventoryApi::stock_edit';
public const ADMIN_RESOURCE = 'Magento_InventoryApi::stock_edit';

/**
* @var StockSaveProcessor
Expand Down Expand Up @@ -139,7 +139,7 @@ private function processRedirectAfterSuccessSave(Redirect $resultRedirect, int $
*
* @return void
*/
private function processRedirectAfterFailureSave(Redirect $resultRedirect, int $stockId = null)
private function processRedirectAfterFailureSave(Redirect $resultRedirect, ?int $stockId = null)
{
if (null === $stockId) {
$resultRedirect->setPath('*/*/new');
Expand Down
2 changes: 1 addition & 1 deletion InventoryAdminUi/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/magento2-functional-testing-framework": "2.2.0",
"magento/functional-test-module-inventory-api": "100.0.0-dev",
"magento/functional-test-module-backend": "100.0.0-dev",
Expand Down
6 changes: 3 additions & 3 deletions InventoryAdminUi/Ui/DataProvider/SourceDataProvider.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -90,7 +90,7 @@ public function __construct(
Session $session,
array $meta = [],
array $data = [],
PoolInterface $pool = null
?PoolInterface $pool = null
) {
parent::__construct(
$name,
Expand Down
7 changes: 4 additions & 3 deletions InventoryAdminUi/Ui/DataProvider/StockDataProvider.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -111,6 +111,7 @@ class StockDataProvider extends DataProvider
* @param StockSourceLinksExtensionAttributes $stockSourceLinksExtensionAttributes
* @param int|null $assignedSourcesLimit
* @SuppressWarnings(PHPMD.ExcessiveParameterList) All parameters are needed for backward compatibility
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function __construct(
$name,
Expand All @@ -129,7 +130,7 @@ public function __construct(
GetSourcesAssignedToStockOrderedByPriorityInterface $getSourcesAssignedToStockOrderedByPriority,
array $meta = [],
array $data = [],
PoolInterface $pool = null,
?PoolInterface $pool = null,
?LoggerInterface $logger = null,
?StockSourceLinksExtensionAttributes $stockSourceLinksExtensionAttributes = null,
?int $assignedSourcesLimit = 100
Expand Down
2 changes: 1 addition & 1 deletion InventoryAdminUi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-admin-ui",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-inventory": "*",
"magento/module-inventory-api": "*",
Expand Down
2 changes: 1 addition & 1 deletion InventoryAdvancedCheckout/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-advanced-checkout",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-store": "*",
"magento/module-inventory-catalog-api": "*",
Expand Down
10 changes: 6 additions & 4 deletions InventoryApi/Api/SourceRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -40,7 +40,8 @@ public function save(\Magento\InventoryApi\Api\Data\SourceInterface $source): vo

/**
* Get Source data by given code. If you want to create plugin on get method, also you need to create separate
* plugin on getList method, because entity loading way is different for these methods
*
* Plugin on getList method, because entity loading way is different for these methods
*
* @param string $sourceCode
* @return \Magento\InventoryApi\Api\Data\SourceInterface
Expand All @@ -50,12 +51,13 @@ public function get(string $sourceCode): \Magento\InventoryApi\Api\Data\SourceIn

/**
* Find Sources by SearchCriteria
*
* SearchCriteria is not required because load all stocks is useful case
*
* @param \Magento\Framework\Api\SearchCriteriaInterface|null $searchCriteria
* @return \Magento\InventoryApi\Api\Data\SourceSearchResultsInterface
*/
public function getList(
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null
?\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null
): \Magento\InventoryApi\Api\Data\SourceSearchResultsInterface;
}
10 changes: 6 additions & 4 deletions InventoryApi/Api/StockRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* Copyright 2017 Adobe
* All Rights Reserved.
*/
declare(strict_types=1);

Expand Down Expand Up @@ -37,7 +37,8 @@ public function save(\Magento\InventoryApi\Api\Data\StockInterface $stock): int;

/**
* Get Stock data by given stockId. If you want to create plugin on get method, also you need to create separate
* plugin on getList method, because entity loading way is different for these methods
*
* Plugin on getList method, because entity loading way is different for these methods
*
* @param int $stockId
* @return \Magento\InventoryApi\Api\Data\StockInterface
Expand All @@ -47,13 +48,14 @@ public function get(int $stockId): \Magento\InventoryApi\Api\Data\StockInterface

/**
* Find Stocks by given SearchCriteria
*
* SearchCriteria is not required because load all stocks is useful case
*
* @param \Magento\Framework\Api\SearchCriteriaInterface|null $searchCriteria
* @return \Magento\InventoryApi\Api\Data\StockSearchResultsInterface
*/
public function getList(
\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null
?\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null
): \Magento\InventoryApi\Api\Data\StockSearchResultsInterface;

/**
Expand Down
2 changes: 1 addition & 1 deletion InventoryApi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-api",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*"
},
"type": "magento2-module",
Expand Down
2 changes: 1 addition & 1 deletion InventoryBundleImportExport/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-bundle-import-export",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-bundle-import-export": "*",
"magento/module-inventory-catalog-api": "*",
Expand Down
2 changes: 1 addition & 1 deletion InventoryBundleProduct/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-bundle-product",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-bundle": "*",
"magento/module-catalog": "*",
Expand Down
2 changes: 1 addition & 1 deletion InventoryBundleProductAdminUi/Test/Mftf/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sort-packages": true
},
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/magento2-functional-testing-framework": "2.2.0",
"magento/functional-test-module-bundle": "100.0.0-dev"
},
Expand Down
2 changes: 1 addition & 1 deletion InventoryBundleProductAdminUi/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-bundle-product-admin-ui",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-bundle": "*",
"magento/module-catalog": "*",
Expand Down
2 changes: 1 addition & 1 deletion InventoryBundleProductIndexer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-bundle-product-indexer",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-bundle": "*",
"magento/module-catalog": "*",
Expand Down
2 changes: 1 addition & 1 deletion InventoryCache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-inventory-cache",
"description": "N/A",
"require": {
"php": "~8.2.0||~8.3.0",
"php": "~8.2.0||~8.3.0||~8.4.0",
"magento/framework": "*",
"magento/module-inventory-catalog-api": "*",
"magento/module-inventory-indexer": "*"
Expand Down
Loading

0 comments on commit 13b9fa2

Please sign in to comment.