Skip to content

Commit

Permalink
src/Core/Entities/ClassEntity.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Xsaven committed Jul 1, 2021
1 parent d9fd3a4 commit b389c3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/Entities/ClassEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b389c3c

Please sign in to comment.