MIR0225
ArgumentTypeCoercion
An argument’s type had to be widened/coerced to match the parameter’s declared type.
Example
Section titled “Example”<?phpfunction f(Child $c){}/** @param Parent $p */ function g($p){ f($p); }How to fix
Section titled “How to fix”Pass a value of the exact expected type, or narrow first.