It seems like array('index' => $index,...> $id, 'path' => $path) of type array<string,string,{"in...ring","path":"string"}> is incompatible with the declared type array<integer,string>|null of property $lookup.
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...
70
'index' => $index,
71
'id' => $id,
72
'path' => $path,
73
];
74
75
return $this;
76
}
77
78
/**
79
* {@inheritdoc}
80
*/
81
public function toArray(): array
82
{
83
if (null !== $this->lookup && \count($this->terms)) {
84
throw new InvalidException('Unable to build Terms query: only one of terms or lookup properties should be set');
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..