From 7b003b9b7153b00b6ccfea4f70fb83401304c06c Mon Sep 17 00:00:00 2001 From: Alex Dong Date: Thu, 10 Nov 2022 15:32:23 +0700 Subject: [PATCH] Compatible PHP 8.x --- Helper/Data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/Data.php b/Helper/Data.php index df072f8..7682f54 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -41,7 +41,7 @@ public function getConfigModule(string $cfg = '', $value = null) if (!$cfg) { return $values; } - $config = explode('/', $cfg); + $config = explode('/', (string) $cfg); $end = count($config) - 1; foreach ($config as $key => $vl) { if (isset($values[$vl])) {