Skip to content

Commit 8079f15

Browse files
committed
Update ArrowFunction component
- Fix dependency management issue
1 parent 21624f5 commit 8079f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArrowFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct($expression = '', string $returnType = '')
1414
$this->signature = new Signature('', Modifier::NONE, $returnType, 'fn');
1515
$this->expression = $this->manageDependency($expression);
1616

17-
$this->dependencyAwareChildren = [$this->signature];
17+
$this->dependencyAwareChildren[] = $this->signature;
1818
}
1919

2020
public static function new($expression = '', string $returnType = '')

0 commit comments

Comments
 (0)