From 9c9a3fd069493c9e88406a4b6ee79d41835c8d2a Mon Sep 17 00:00:00 2001 From: Diego Cabrejas Date: Tue, 18 Jun 2019 13:16:32 +0100 Subject: [PATCH] Use class name as type hint instead of self. Self breaks code generator when a preference is defined. Fixes #22769 --- .../Catalog/Model/Indexer/Category/Product/Action/Full.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php b/app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php index eb59acb56c356..eee347c36910d 100644 --- a/app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php +++ b/app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Full.php @@ -152,7 +152,7 @@ private function switchTables(): void * * @return $this */ - public function execute(): self + public function execute(): Full { $this->createTables(); $this->clearReplicaTables();