Skip to content

Commit b66bd81

Browse files
committed
Revert "Fix creating param from variable inherits default value"
This reverts commit c846ffc.
1 parent c846ffc commit b66bd81

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/PhpParam.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ public static function fromVariable(PhpVariable $var): self
2525
{
2626
$self = new self($var->getIdentifier()->getName(), $var->getType());
2727
$self->variable = $var;
28-
if ($var->getInitializedValue() !== PhpVariable::NO_VALUE) {
29-
$self->setValue($var->getInitializedValue());
30-
}
3128
return $self;
3229
}
3330

0 commit comments

Comments
 (0)