diff --git a/src/Core/Entities/ClassEntity.php b/src/Core/Entities/ClassEntity.php index 4374b7b..f4adeeb 100644 --- a/src/Core/Entities/ClassEntity.php +++ b/src/Core/Entities/ClassEntity.php @@ -458,6 +458,11 @@ protected function build(): string foreach ($this->const as $n_const => $const) { + if (is_array($const)) { + + $const = array_entity($const)->setLevel($this->level)->render(); + } + $data .= $spaces . str_repeat(" ", 4) . "const {$n_const}" . ($const !== ClassPropertyEntity::NONE_PARAM ? " = {$const};":";") . $this->eol() . $this->eol(); }