Skip to content

Commit faa9e4f

Browse files
Merge pull request #56 from claudio-ferraro/patch-1
Fix: update $storeId type hints to int|string|null in SlackHelper
2 parents 83f8d12 + 18b4195 commit faa9e4f

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)