Skip to content

Commit 6a87104

Browse files
committed
MAGE-838 Fix types
1 parent 114e078 commit 6a87104

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Helper/ConfigHelper.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,20 +1103,20 @@ public function getSortingIndices(
11031103

11041104
/***
11051105
* @param $storeId
1106-
* @return array|bool|float|int|mixed|string|null
1106+
* @return array<string,<array<string, mixed>>>
11071107
*/
1108-
public function getSorting($storeId = null)
1108+
public function getSorting($storeId = null): array
11091109
{
11101110
return $this->unserialize($this->getRawSortingValue($storeId));
11111111
}
11121112

11131113
/**
1114-
* @param $storeId
1115-
* @return mixed
1114+
* @param int|null $storeId
1115+
* @return string
11161116
*/
1117-
public function getRawSortingValue($storeId = null)
1117+
public function getRawSortingValue(?int $storeId = null): string
11181118
{
1119-
return $this->configInterface->getValue(
1119+
return (string) $this->configInterface->getValue(
11201120
self::SORTING_INDICES,
11211121
ScopeInterface::SCOPE_STORE,
11221122
$storeId
@@ -1155,7 +1155,7 @@ public function getCurrencyCode($storeId = null)
11551155
* @param $storeId
11561156
* @return bool
11571157
*/
1158-
public function isCustomerGroupsEnabled($storeId = null)
1158+
public function isCustomerGroupsEnabled($storeId = null): bool
11591159
{
11601160
return $this->configInterface->isSetFlag(self::CUSTOMER_GROUPS_ENABLE, ScopeInterface::SCOPE_STORE, $storeId);
11611161
}

0 commit comments

Comments
 (0)