From fe4aabf28aaaf2f7dd1ccaea4b26ffed8546e0fc Mon Sep 17 00:00:00 2001 From: Denis Slepnev Date: Thu, 16 Feb 2023 11:22:39 +0200 Subject: [PATCH] PHP 8.1 | Deprecated: current() fix added. --- src/Domain/Package/Config/ModuleXml.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Domain/Package/Config/ModuleXml.php b/src/Domain/Package/Config/ModuleXml.php index f4cef46..56a69a2 100644 --- a/src/Domain/Package/Config/ModuleXml.php +++ b/src/Domain/Package/Config/ModuleXml.php @@ -75,7 +75,8 @@ private function parseModuleXmlFile(): void $this->content['module']['sequence'] = []; foreach ($content->module->sequence->children() as $module) { - $this->content['module']['sequence'][] = (string)current(current($module->attributes())); + $moduleName = get_mangled_object_vars($module->attributes())['@attributes']['name']; + $this->content['module']['sequence'][] = $moduleName; } } }