Skip to content

Commit a337a45

Browse files
committed
MAGE-941 Add nullable types
1 parent 639b324 commit a337a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Service/IndexNameFetcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(
2424
* @return string
2525
* @throws NoSuchEntityException
2626
*/
27-
public function getIndexName(string $indexSuffix, int $storeId = null, bool $tmp = false): string
27+
public function getIndexName(string $indexSuffix, ?int $storeId = null, bool $tmp = false): string
2828
{
2929
return $this->getBaseIndexName($storeId) . $indexSuffix . ($tmp ? self::INDEX_TEMP_SUFFIX : '');
3030
}
@@ -34,7 +34,7 @@ public function getIndexName(string $indexSuffix, int $storeId = null, bool $tmp
3434
* @return string
3535
* @throws NoSuchEntityException
3636
*/
37-
public function getBaseIndexName(int $storeId = null): string
37+
public function getBaseIndexName(?int $storeId = null): string
3838
{
3939
return $this->configHelper->getIndexPrefix($storeId) . $this->storeManager->getStore($storeId)->getCode();
4040
}

0 commit comments

Comments
 (0)