1 | <?php |
||
20 | class InMemoryStorage extends AbstractStorage implements StorageInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var HashMap |
||
24 | */ |
||
25 | protected $store; |
||
26 | |||
27 | /** |
||
28 | * Creates a new store. |
||
29 | * |
||
30 | * @param SerializerInterface $serializer |
||
31 | * @param array $elements |
||
32 | */ |
||
33 | public function __construct(SerializerInterface $serializer, array $elements = array()) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function set($key, $value) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function get($key, $default = null) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function has($key) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function remove($key) |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function clear() |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function keys() |
||
106 | } |
||
107 |
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..