1 | <?php |
||
7 | class CookieSession implements SessionInterface |
||
8 | { |
||
9 | /** |
||
10 | * The name of the cookie. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $cookieName = 'ab'; |
||
15 | |||
16 | /** |
||
17 | * A copy of the session data. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $data = null; |
||
22 | |||
23 | /** |
||
24 | * Cookie lifetime. |
||
25 | * |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $minutes = 60; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | */ |
||
33 | public function __construct() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function get($name, $default = null) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function set($name, $value) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function clear() |
||
65 | } |
||
66 |
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..