Skip to content

Commit 228000a

Browse files
committed
Bugfix
1 parent 07a73aa commit 228000a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/generator/CodeFileGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function getConfig() {
3232
public function generate(GenerateableInterface $model) {
3333
$content = "<?php\n";
3434

35-
if (($comment = $this->config->getHeaderComment()) !== null) {
35+
$comment = $this->config->getHeaderComment();
36+
if (!empty($comment)) {
3637
$docblock = new Docblock();
3738
$docblock->setLongDescription($comment);
3839
$content .= str_replace('/**', '/*', $docblock->toString()) . "\n";

0 commit comments

Comments
 (0)