This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
39
*/
40
public static function isGooglePageSpeed($useCache = true)
41
{
42
if (null === self::$_cache || false === $useCache) {
It seems like null !== $userAgent && f...gent, 'Speed Insights') of type boolean is incompatible with the declared type null|string of property $_cache.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.