We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47812d2 commit c846ffcCopy full SHA for c846ffc
src/PhpParam.php
@@ -25,6 +25,9 @@ public static function fromVariable(PhpVariable $var): self
25
{
26
$self = new self($var->getIdentifier()->getName(), $var->getType());
27
$self->variable = $var;
28
+ if ($var->getInitializedValue() !== PhpVariable::NO_VALUE) {
29
+ $self->setValue($var->getInitializedValue());
30
+ }
31
return $self;
32
}
33
0 commit comments