Skip to content

Commit c971356

Browse files
committed
MAGE-1365 Fix dangling implicit nullable types identified by SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
1 parent dc74ad7 commit c971356

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Controller/Adminhtml/IndexingManager/Reindex.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Algolia\AlgoliaSearch\Service\Category\BatchQueueProcessor as CategoryBatchQueueProcessor;
1717
use Algolia\AlgoliaSearch\Service\Page\BatchQueueProcessor as PageBatchQueueProcessor;
1818
use Algolia\AlgoliaSearch\Service\Product\BatchQueueProcessor as ProductBatchQueueProcessor;
19+
use Magento\Framework\Exception\LocalizedException;
1920
use Magento\Framework\Exception\NoSuchEntityException;
2021
use Magento\Store\Model\StoreManagerInterface;
2122

@@ -131,8 +132,9 @@ protected function isMassAction(array $params): bool
131132
* @throws AlgoliaException
132133
* @throws DiagnosticsException
133134
* @throws NoSuchEntityException
135+
* @throws LocalizedException
134136
*/
135-
protected function reindexEntities(array $entities, array $storeIds = null, array $entityIds = null): void
137+
protected function reindexEntities(array $entities, ?array $storeIds = null, ?array $entityIds = null): void
136138
{
137139
foreach ($entities as $entity) {
138140
$processor = match ($entity) {

Test/Integration/Indexing/MultiStoreTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function setUp(): void
4444

4545
protected function reindexToAllStores(
4646
BatchQueueProcessorInterface $batchQueueProcessor,
47-
array $categoryIds = null
47+
?array $categoryIds = null
4848
): void
4949
{
5050
foreach (array_keys($this->storeManager->getStores()) as $storeId) {

0 commit comments

Comments
 (0)