It seems like new \TestNamespace\ClassDep() of type object<TestNamespace\ClassDep> is incompatible with the declared type object<TestNamespace\TestNamespace\ClassDep> of property $dependency.
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...
36
}
37
38
/**
39
* @return int
40
*/
41
final public function getProva()
42
{
43
return $this->prova;
44
}
45
46
/**
47
* @var prova int
48
*/
49
final public function setProva(int $prova)
50
{
51
$this->prova = $prova;
52
}
53
54
/**
55
* @return TestNamespace\ClassDep
56
*/
57
final public function getDependency()
58
{
59
return $this->dependency;
60
}
61
62
/**
63
* @var dependency TestNamespace\ClassDep
64
*/
65
final public function setDependency(ClassDep $dependency)
It seems like $dependency of type object<TestNamespace\ClassDep> is incompatible with the declared type object<TestNamespace\TestNamespace\ClassDep> of property $dependency.
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..
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..