Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
44 | 4 | protected function innerFields() |
|
45 | { |
||
46 | $fields = [ |
||
47 | 'language' => [ |
||
48 | 4 | 'type' => 'select', |
|
49 | 4 | 'label' => 'language', |
|
50 | 4 | 'options' => $this->getModel()->getLanguages(), |
|
51 | 4 | 'value' => app('tinyissue.settings')->getLanguage(), |
|
52 | ], |
||
53 | ]; |
||
54 | 4 | $fields += $this->passwordFields(); |
|
55 | |||
56 | 4 | return $fields; |
|
57 | } |
||
58 | |||
71 |
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: