Skip to content

Commit cbfeeaf

Browse files
committed
Update php 8.x
1 parent 97429b2 commit cbfeeaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Controller/Adminhtml/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function _isAllowed()
112112
{
113113
$namespace = (new \ReflectionObject($this))->getNamespaceName();
114114
$string = strtolower(str_replace(__NAMESPACE__ . '\\','', $namespace));
115-
$action = explode('\\', $string);
115+
$action = explode('\\',(string) $string);
116116
$action = array_shift($action);
117117
return $this->_authorization->isAllowed("Magepow_Theme::theme_$action");
118118
}

Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getConfigModule($cfg='', $value=null)
3333
{
3434
$values = $this->configModule;
3535
if( !$cfg ) return $values;
36-
$config = explode('/', $cfg);
36+
$config = explode('/',(string) $cfg);
3737
$end = count($config) - 1;
3838
foreach ($config as $key => $vl) {
3939
if( isset($values[$vl]) ){

0 commit comments

Comments
 (0)