1 | <?php |
||
19 | class TokenFactory |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * The authorization server instance. |
||
24 | * |
||
25 | * @var \League\OAuth2\Server\AuthorizationServer |
||
26 | */ |
||
27 | protected $server; |
||
28 | |||
29 | /** |
||
30 | * @var Client |
||
31 | */ |
||
32 | protected $client; |
||
33 | |||
34 | /** |
||
35 | * @var Client |
||
36 | */ |
||
37 | protected $jwt; |
||
38 | |||
39 | /** |
||
40 | * TokenFactory constructor |
||
41 | * |
||
42 | * @param \League\OAuth2\Server\AuthorizationServer $server |
||
43 | * @param $client |
||
44 | */ |
||
45 | 1 | public function __construct(AuthorizationServer $server = null, $client = null, JwtParser $jwt = null) |
|
51 | |||
52 | |||
53 | /** |
||
54 | * Create a new personal access token. |
||
55 | *a |
||
56 | * @param mixed $userId |
||
57 | * @param string $name |
||
58 | * @param array $scopes |
||
59 | * @return \Laravel\Passport\PersonalAccessTokenResult |
||
60 | */ |
||
61 | 1 | public function make($userId, $name, array $scopes = []) |
|
71 | |||
72 | /** |
||
73 | * Create a request instance for the given client. |
||
74 | * |
||
75 | * @param Client $client |
||
76 | * @param mixed $userId |
||
77 | * @param array $scopes |
||
78 | * @return Request |
||
79 | */ |
||
80 | 1 | protected function createRequest($client, $userId, array $scopes) |
|
90 | |||
91 | /** |
||
92 | * Dispatch the given request to the authorization server. |
||
93 | * |
||
94 | * @param Request $request |
||
95 | * @return array |
||
96 | */ |
||
97 | 1 | protected function dispatchRequestToAuthorizationServer(ServerRequest $request) |
|
106 | |||
107 | /** |
||
108 | * Get the access token instance for the parsed response. |
||
109 | * |
||
110 | * @param array $response |
||
111 | * @return Token |
||
112 | */ |
||
113 | protected function findAccessToken(array $response) |
||
119 | } |
||
120 |
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..