Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function run() |
||
41 | { |
||
42 | $id = $this->ajaxModalOptions['id']; |
||
43 | $toggleButton = function () use ($id) { |
||
44 | $this->options['id'] = $id; |
||
45 | $this->initOptions(); |
||
46 | |||
47 | return $this->renderToggleButton(); |
||
48 | }; |
||
49 | $obj = (new ReflectionClass(AjaxModal::class))->newInstanceWithoutConstructor(); |
||
50 | $obj->toggleButton = $this->toggleButtonOptions; |
||
51 | |||
52 | $button = $toggleButton->call($obj); |
||
53 | if ($button) { |
||
54 | $button = strtr($this->toggleButtonTemplate, [ |
||
55 | '{toggleButton}' => $button, |
||
56 | ]); |
||
57 | } |
||
58 | |||
59 | return $button; |
||
60 | } |
||
61 | } |
||
62 |
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..