It seems like $target of type object<keeko\core\kernel\KernelTargetInterface> is incompatible with the declared type object<keeko\core\events\KernelInterface> of property $target.
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..
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.