| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function loginAction() |
||
| 18 | { |
||
| 19 | Tag::prependTitle('Dashboard Login'); |
||
| 20 | |||
| 21 | $redirect = $this->request->getQuery('redirect'); |
||
| 22 | $sanitizedRedirect = trim(strip_tags($redirect)); |
||
| 23 | |||
| 24 | $this->view->setVars([ |
||
|
1 ignored issue
–
show
|
|||
| 25 | 'hideDashboardRoot' => true, |
||
| 26 | 'redirect' => $sanitizedRedirect, |
||
| 27 | ]); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: