MIR0200
InvalidReturnType
The returned value does not match the declared return type.
Example
Section titled “Example”<?phpfunction getCount(): int { return '5'; // string returned, int expected}How to fix
Section titled “How to fix”Return a value of the correct type or update the return type declaration.
