This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The expression return http_response_code() could return the type true which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
48
}
49
50
/**
51
* Return whether we are running Craft 3.1 or later
52
*
53
* @return bool
54
*/
55
public function craft31(): bool
56
{
57
return true;
58
}
59
60
/**
61
* Return whether we are running Craft 3.2 or later