1 | <?php |
||
8 | final class Session extends SuperGlobal |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $flashdata = []; |
||
14 | |||
15 | /** |
||
16 | * @var string index for flash data |
||
17 | */ |
||
18 | private $flashdataId = '__flash_data'; |
||
19 | |||
20 | 8 | public function __construct(Container $container, Security $security) |
|
28 | |||
29 | /** |
||
30 | * Processes current requests flashdata, recycles old. |
||
31 | * @access private |
||
32 | */ |
||
33 | 8 | private function flashGarbageCollection() |
|
48 | |||
49 | 1 | private function incrementFlashStorage(array $storage) |
|
60 | |||
61 | // Because sessions persist, we need to do a little more work here.. |
||
62 | // In addition, most superglobals are immuteable, whereas session is not |
||
63 | public function set(string $key, $value) |
||
70 | |||
71 | /** |
||
72 | * @param $name |
||
73 | * @param $value |
||
74 | */ |
||
75 | public function setFlash($name, $value) |
||
83 | |||
84 | /** |
||
85 | * @param string $key |
||
86 | * @param null $default |
||
87 | * @return array|null |
||
88 | */ |
||
89 | public function getFlash(string $key, $default = null) |
||
93 | |||
94 | /** |
||
95 | * destroys a session and related cookies |
||
96 | */ |
||
97 | public function destroy() |
||
113 | } |
||
114 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.