Skip to content

Commit

Permalink
Skip generating builders for classes that are not instantiatable
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jun 18, 2019
1 parent 261d3a1 commit ab3133b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/BuilderGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public function shouldGenerateBuilder(): bool
return false;
}

if (!$this->class->isInstantiable()) {
return false;
}

return true;
}

Expand Down

0 comments on commit ab3133b

Please sign in to comment.