1 | <?php |
||
16 | class FileProvider extends ProviderAbstract |
||
17 | { |
||
18 | public $dir = '@runtime'; |
||
19 | |||
20 | /** |
||
21 | * Get storage state value |
||
22 | * |
||
23 | * @param string $key |
||
24 | * @param $default |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function getStorageState(string $key, $default = null) |
||
34 | |||
35 | /** |
||
36 | * Set storage state value |
||
37 | * |
||
38 | * @param string $key |
||
39 | * @param $value |
||
40 | */ |
||
41 | public function setStorageState(string $key, array $value) |
||
45 | |||
46 | /** |
||
47 | * Get storage data |
||
48 | * |
||
49 | * @param bool $decode |
||
50 | * |
||
51 | * @return array|string |
||
52 | */ |
||
53 | protected function getStorageData(bool $decode = true) |
||
64 | |||
65 | /** |
||
66 | * Add data to storage |
||
67 | * |
||
68 | * @param array $newData |
||
69 | */ |
||
70 | protected function setStorageData(array $newData) |
||
76 | |||
77 | /** |
||
78 | * Get path to storage file. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function getStorageFilePath(): string |
||
90 | } |
||
91 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.