File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \CatalogSearch \Model \Indexer ;
7
9
8
10
use Magento \Catalog \Model \Product ;
@@ -183,7 +185,7 @@ public function testReindexRowAfterDelete()
183
185
* @param string $text
184
186
* @return Product[]
185
187
*/
186
- protected function search ($ text )
188
+ protected function search ($ text ): array
187
189
{
188
190
$ query = $ this ->queryFactory ->get ();
189
191
$ query ->unsetData ();
@@ -209,7 +211,7 @@ protected function search($text)
209
211
* @param string $sku
210
212
* @return Product
211
213
*/
212
- protected function getProductBySku ($ sku )
214
+ protected function getProductBySku ($ sku ): Product
213
215
{
214
216
/** @var Product $product */
215
217
$ product = Bootstrap::getObjectManager ()->get (
You can’t perform that action at this time.
0 commit comments