File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
app/code/Magento/CatalogRule/Model/Indexer Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,10 @@ public function executeRow($id)
133
133
* Execute partial indexation by ID. Template method
134
134
*
135
135
* @param int $id
136
- * @throws \Magento\Framework\Exception\LocalizedException
137
136
* @return void
137
+ *@throws \Magento\Framework\Exception\LocalizedException
138
138
*/
139
- abstract protected function doExecuteRow ($ id );
139
+ abstract protected function doExecuteRow (int $ id );
140
140
141
141
/**
142
142
* Get cache manager
Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ public function __construct(
260
260
* Reindex by id
261
261
*
262
262
* @param int $id
263
- * @throws LocalizedException
264
263
* @return void
264
+ *@throws LocalizedException
265
265
*/
266
- public function reindexById ($ id )
266
+ public function reindexById (int $ id )
267
267
{
268
268
try {
269
269
$ this ->cleanProductIndex ([$ id ]);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ protected function doExecuteList($ids)
21
21
/**
22
22
* {@inheritdoc}
23
23
*/
24
- protected function doExecuteRow ($ id )
24
+ protected function doExecuteRow (int $ id )
25
25
{
26
26
$ this ->indexBuilder ->reindexById ($ id );
27
27
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ protected function doExecuteList($ids)
25
25
*
26
26
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
27
27
*/
28
- protected function doExecuteRow ($ id )
28
+ protected function doExecuteRow (int $ id )
29
29
{
30
30
$ this ->indexBuilder ->reindexFull ();
31
31
}
You can’t perform that action at this time.
0 commit comments