1 | <?php |
||
17 | class JWT implements JWTInterface |
||
18 | { |
||
19 | /** |
||
20 | * The builder token. |
||
21 | * |
||
22 | * @var Lcobucci\JWT\Builder |
||
23 | */ |
||
24 | protected $builder; |
||
25 | |||
26 | public function __construct() |
||
38 | |||
39 | /** |
||
40 | * Create object of a token. |
||
41 | * |
||
42 | * @param array $user |
||
43 | * |
||
44 | * @return Lcobucci\JWT\Token |
||
45 | */ |
||
46 | public function generateTokenByUser($user) |
||
53 | |||
54 | /** |
||
55 | * [Return the value of a token the request]. |
||
56 | * |
||
57 | * @param string $token |
||
58 | * |
||
59 | * @return Lcobucci\JWT\Token |
||
60 | */ |
||
61 | public function decodeToken($token) |
||
75 | |||
76 | /** |
||
77 | * Verify is validate token in signature. |
||
78 | * |
||
79 | * @param Lcobucci\JWT\Token $token |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function isValidByToken(Token $token) |
||
87 | } |
||
88 |
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..