MIR1208
MixedPropertyAssignment
A mixed value is assigned to a property, hiding its concrete type.
Example
Section titled “Example”<?phpclass C { public int $n; }/** @param mixed $x */ function f(C $o,$x){ $o->n = $x; }How to fix
Section titled “How to fix”Narrow the value to the property’s type before assigning.