1 | <?php namespace Understand\UnderstandLaravel5; |
||
3 | class TokenProvider |
||
4 | { |
||
5 | |||
6 | /** |
||
7 | * Current token |
||
8 | * |
||
9 | * @var type |
||
10 | */ |
||
11 | protected $token; |
||
12 | |||
13 | /** |
||
14 | * Generate and set new token |
||
15 | */ |
||
16 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * Return token |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | public function getToken() |
||
30 | |||
31 | /** |
||
32 | * Generate new token |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function generate() |
||
40 | |||
41 | /** |
||
42 | * Return unique string |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function getUuid() |
||
66 | |||
67 | } |
||
68 |
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..