The variable $scope 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...
28
}
29
30
static function for_anonymous_user() {
31
return new SAL_Token(
32
null,
33
get_current_user_id(),
34
null, // there's only ever one scope in our current API implementation, auth or global
35
null,
36
null,
37
null,
38
null
39
);
40
}
41
42
static function from_rest_token( $token ) {
43
return new SAL_Token(
44
$token['blog_id'],
45
$token['user_id'],
46
$token['scope'][0], // there's only ever one scope in our current API implementation, auth or global
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.