The variable $id does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
50
} catch (RecordNotFoundException $e) {
51
$result = null;
52
}
53
54
return $result;
55
}
56
57
/**
58
* Fetches a cache by its wp_oc.
59
*/
60
public function fetchOneByWpOC(text $cache_wp_oc): ?CacheEntity
The variable $wp_oc does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
64
} catch (RecordNotFoundException $e) {
65
$result = null;
66
}
67
68
return $result;
69
}
70
71
/**
72
* Fetches a cache by its name.
73
*/
74
public function fetchOneByName(text $cache_name): ?CacheEntity
The variable $name does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.