Skip to content

Commit 18b4195

Browse files
Fix: update $storeId type hints to int|string|null in SlackHelper
Changed the $storeId parameters in Helper/SlackHelper.php from ?int to int|string|null to ensure full compatibility with Magento's ScopeConfigInterface.
1 parent bf5ac84 commit 18b4195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Helper/SlackHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SlackHelper extends AbstractHelper
1414
* @param String $field
1515
* @param Int $storeId
1616
*/
17-
public function getConfigValue($field, ?int $storeId = null)
17+
public function getConfigValue($field, int|string|null $storeId = null)
1818
{
1919
return $this->scopeConfig->getValue(
2020
$field,
@@ -28,7 +28,7 @@ public function getConfigValue($field, ?int $storeId = null)
2828
* @param String $code
2929
* @param null $storeId
3030
*/
31-
public function getGeneralConfig($code, ?int $storeId = null)
31+
public function getGeneralConfig($code, int|string|null $storeId = null)
3232
{
3333
return $this->getConfigValue(self::XML_PATH . $code, $storeId);
3434
}

0 commit comments

Comments
 (0)