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)
133133 * Execute partial indexation by ID. Template method
134134 *
135135 * @param int $id
136- * @throws \Magento\Framework\Exception\LocalizedException
137136 * @return void
137+ *@throws \Magento\Framework\Exception\LocalizedException
138138 */
139- abstract protected function doExecuteRow ($ id );
139+ abstract protected function doExecuteRow (int $ id );
140140
141141 /**
142142 * Get cache manager
Original file line number Diff line number Diff line change @@ -260,10 +260,10 @@ public function __construct(
260260 * Reindex by id
261261 *
262262 * @param int $id
263- * @throws LocalizedException
264263 * @return void
264+ *@throws LocalizedException
265265 */
266- public function reindexById ($ id )
266+ public function reindexById (int $ id )
267267 {
268268 try {
269269 $ this ->cleanProductIndex ([$ id ]);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ protected function doExecuteList($ids)
2121 /**
2222 * {@inheritdoc}
2323 */
24- protected function doExecuteRow ($ id )
24+ protected function doExecuteRow (int $ id )
2525 {
2626 $ this ->indexBuilder ->reindexById ($ id );
2727 }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ protected function doExecuteList($ids)
2525 *
2626 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
2727 */
28- protected function doExecuteRow ($ id )
28+ protected function doExecuteRow (int $ id )
2929 {
3030 $ this ->indexBuilder ->reindexFull ();
3131 }
You can’t perform that action at this time.
0 commit comments