File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Controller/Adminhtml/IndexingManager
Test/Integration/Indexing Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 16
16
use Algolia \AlgoliaSearch \Service \Category \BatchQueueProcessor as CategoryBatchQueueProcessor ;
17
17
use Algolia \AlgoliaSearch \Service \Page \BatchQueueProcessor as PageBatchQueueProcessor ;
18
18
use Algolia \AlgoliaSearch \Service \Product \BatchQueueProcessor as ProductBatchQueueProcessor ;
19
+ use Magento \Framework \Exception \LocalizedException ;
19
20
use Magento \Framework \Exception \NoSuchEntityException ;
20
21
use Magento \Store \Model \StoreManagerInterface ;
21
22
@@ -131,8 +132,9 @@ protected function isMassAction(array $params): bool
131
132
* @throws AlgoliaException
132
133
* @throws DiagnosticsException
133
134
* @throws NoSuchEntityException
135
+ * @throws LocalizedException
134
136
*/
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
136
138
{
137
139
foreach ($ entities as $ entity ) {
138
140
$ processor = match ($ entity ) {
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ protected function setUp(): void
44
44
45
45
protected function reindexToAllStores (
46
46
BatchQueueProcessorInterface $ batchQueueProcessor ,
47
- array $ categoryIds = null
47
+ ? array $ categoryIds = null
48
48
): void
49
49
{
50
50
foreach (array_keys ($ this ->storeManager ->getStores ()) as $ storeId ) {
You can’t perform that action at this time.
0 commit comments