Skip to content

Commit f5259bc

Browse files
authored
fix(constructor): fix missing stmts when no condition (#233)
2 parents 8083bfd + e721695 commit f5259bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Generator/CreateTargetStatementsGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ private function constructorArgument(GeneratorMetadata $metadata, PropertyMetada
216216
if (!$condition) {
217217
return [
218218
[
219+
...$propStatements,
219220
new Stmt\Expression(new Expr\Assign($constructVar, $output)),
220221
],
221222
new Arg($constructVar, name: new Identifier($parameter->getName())),

0 commit comments

Comments
 (0)