We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a73aa commit 228000aCopy full SHA for 228000a
1 file changed
src/generator/CodeFileGenerator.php
@@ -32,7 +32,8 @@ public function getConfig() {
32
public function generate(GenerateableInterface $model) {
33
$content = "<?php\n";
34
35
- if (($comment = $this->config->getHeaderComment()) !== null) {
+ $comment = $this->config->getHeaderComment();
36
+ if (!empty($comment)) {
37
$docblock = new Docblock();
38
$docblock->setLongDescription($comment);
39
$content .= str_replace('/**', '/*', $docblock->toString()) . "\n";
0 commit comments