1 | <?php |
||
12 | class Application |
||
13 | { |
||
14 | /** |
||
15 | * @var Request |
||
16 | */ |
||
17 | public $request; |
||
18 | |||
19 | /** |
||
20 | * @var Response |
||
21 | */ |
||
22 | public $response; |
||
23 | |||
24 | /** |
||
25 | * @var Router |
||
26 | */ |
||
27 | public $router; |
||
28 | |||
29 | /** |
||
30 | * Application constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * Create Application object from static function |
||
39 | * @return Application |
||
40 | */ |
||
41 | public static function create() |
||
45 | |||
46 | /** |
||
47 | * initialize Application |
||
48 | */ |
||
49 | public function initialize() |
||
57 | |||
58 | public function setTimeZone($timezone = 'Asia/Jakarta') |
||
62 | |||
63 | /** |
||
64 | * Run Application |
||
65 | */ |
||
66 | public function run() |
||
71 | |||
72 | /** |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function getRequest() |
||
79 | |||
80 | /** |
||
81 | * @param mixed $request |
||
82 | */ |
||
83 | public function setRequest($request) |
||
87 | |||
88 | /** |
||
89 | * @return mixed |
||
90 | */ |
||
91 | public function getResponse() |
||
95 | |||
96 | /** |
||
97 | * @param mixed $response |
||
98 | */ |
||
99 | public function setResponse($response) |
||
103 | } |
||
104 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: