There is no parameter named $children.... Did you maybe mean $children?
This check looks for PHPDoc comments describing methods or function parameters that
do not exist on the corresponding method or function. It has, however, found a
similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter $ireland is not defined by
the method finale(...).
It seems like $children of type array<integer,object<Respect\Validation\Result>> is incompatible with the declared type array<integer,object<Respect\Validation\Rule>> of property $children.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
62
}
63
64
/**
65
* {@inheritdoc}
66
*/
67
public function isValid()
68
{
69
return $this->isValid;
70
}
71
72
/**
73
* {@inheritdoc}
74
*/
75
public function getInput()
76
{
77
return $this->input;
78
}
79
80
/**
81
* {@inheritdoc}
82
*/
83
public function getRule()
84
{
85
return $this->rule;
86
}
87
88
/**
89
* {@inheritdoc}
90
*/
91
public function getChildren()
92
{
93
return $this->children;
94
}
95
96
/**
97
* {@inheritdoc}
98
*/
99
public function getProperties()
100
{
101
return $this->properties;
102
}
103
104
/**
105
* {@inheritdoc}
106
*/
107
public function with($isValid, array $properties = [])
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.