Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
71 | public function adminNotification() : ?array |
||
72 | { |
||
73 | $reader = new Reader(); |
||
74 | $reader->init(); |
||
75 | $content = $reader->load($this->_optionArray['url']); |
||
76 | |||
77 | /* handle notification */ |
||
78 | |||
79 | if ($content) |
||
80 | { |
||
81 | $this->setNotification('success', $this->_language->get('_live_reload')['server_online'] . $this->_language->get('point')); |
||
82 | } |
||
83 | else |
||
84 | { |
||
85 | $this->setNotification('error', $this->_language->get('_live_reload')['server_offline'] . $this->_language->get('colon') . ' ' . $this->_optionArray['url']); |
||
86 | } |
||
87 | return $this->getNotification(); |
||
88 | } |
||
89 | } |
||
90 |
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: