Skip to content

Commit

Permalink
PHP 8.1 | Deprecated: current() fix added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Slepnev committed Feb 16, 2023
1 parent 50eecad commit fe4aabf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Domain/Package/Config/ModuleXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit fe4aabf

Please sign in to comment.