1 | <?php |
||
16 | class Application |
||
17 | { |
||
18 | /** |
||
19 | * @var Application |
||
20 | */ |
||
21 | public static $app; |
||
22 | |||
23 | /** |
||
24 | * @var Request |
||
25 | */ |
||
26 | public $request; |
||
27 | |||
28 | /** |
||
29 | * @var Response |
||
30 | */ |
||
31 | public $response; |
||
32 | |||
33 | /** |
||
34 | * @var Session |
||
35 | */ |
||
36 | public $session; |
||
37 | |||
38 | /** |
||
39 | * @var RouteHandle |
||
40 | */ |
||
41 | public $routeHandle; |
||
42 | |||
43 | /** |
||
44 | * @var Database |
||
45 | */ |
||
46 | public $db; |
||
47 | |||
48 | /** |
||
49 | * Application constructor. |
||
50 | * @param SessionStorageInterface $storage |
||
51 | */ |
||
52 | public function __construct(SessionStorageInterface $storage = null) |
||
56 | |||
57 | /** |
||
58 | * Create Application object from static function |
||
59 | * @param SessionStorageInterface $storage |
||
60 | * @return Application |
||
61 | */ |
||
62 | public static function create(SessionStorageInterface $storage = null) |
||
66 | |||
67 | /** |
||
68 | * initialize Application |
||
69 | * @param SessionStorageInterface $storage |
||
70 | */ |
||
71 | public function initialize(SessionStorageInterface $storage = null) |
||
89 | |||
90 | /** |
||
91 | * initialize Database |
||
92 | */ |
||
93 | protected function initDatabase() |
||
102 | |||
103 | /** |
||
104 | * @param string $timezone |
||
105 | * @return bool |
||
106 | */ |
||
107 | public function setTimeZone($timezone = 'Asia/Jakarta') |
||
111 | |||
112 | /** |
||
113 | * @param $baseDir |
||
114 | */ |
||
115 | public function initConfigDir($baseDir) |
||
125 | |||
126 | /** |
||
127 | * Run Application |
||
128 | */ |
||
129 | public function run() |
||
136 | |||
137 | /** |
||
138 | * @return mixed |
||
139 | */ |
||
140 | public function getRequest() |
||
144 | |||
145 | /** |
||
146 | * @param mixed $request |
||
147 | */ |
||
148 | public function setRequest($request) |
||
152 | |||
153 | /** |
||
154 | * @return mixed |
||
155 | */ |
||
156 | public function getResponse() |
||
160 | |||
161 | /** |
||
162 | * @param mixed $response |
||
163 | */ |
||
164 | public function setResponse($response) |
||
168 | |||
169 | /** |
||
170 | * @param array $routesArr |
||
171 | */ |
||
172 | public function setListRoute($routesArr = array()) |
||
176 | |||
177 | /** |
||
178 | * terminate application |
||
179 | */ |
||
180 | public function terminate() |
||
190 | } |
||
191 |
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..