MIR0226
PropertyTypeCoercion
A value assigned to a property had to be coerced to the property’s declared type.
Example
Section titled “Example”<?phpclass C { public Child $c; }/** @param Parent $p */ function f(C $o,$p){ $o->c = $p; }How to fix
Section titled “How to fix”Assign a value of the exact declared type.