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 fb2dcf9 commit 3e62a47Copy full SHA for 3e62a47
app/Parsers/ParameterParser.php
@@ -19,7 +19,13 @@ public function parse(NodeParameter $node)
19
{
20
$this->context->name = $node->getName();
21
22
+ $constructorProperty = $node->visibilityToken !== null;
23
+
24
if (!$node->typeDeclarationList) {
25
+ if ($constructorProperty) {
26
+ $this->context->addPropertyToNearestClassDefinition($this->context->name);
27
+ }
28
29
return $this->context->value;
30
}
31
@@ -31,6 +37,10 @@ public function parse(NodeParameter $node)
37
32
38
33
39
40
41
+ $this->context->addPropertyToNearestClassDefinition($this->context->name, $this->context->types);
42
43
34
44
35
45
36
46
0 commit comments