1 | <?php |
||
16 | class CustomUi implements StatusAwarePluginInterface |
||
17 | { |
||
18 | /** @var Factory */ |
||
19 | protected $factory; |
||
20 | |||
21 | /**@var Group */ |
||
22 | protected $allPlayers; |
||
23 | |||
24 | /** @var string[] */ |
||
25 | protected $uiProperties; |
||
26 | |||
27 | /** @var string */ |
||
28 | protected $setPropertiesScriptEvent; |
||
29 | |||
30 | /**@var WidgetFactory[] */ |
||
31 | protected $customWidgets; |
||
32 | |||
33 | /** |
||
34 | * CustomUi constructor. |
||
35 | * |
||
36 | * @param Factory $factory |
||
37 | * @param Group $allPlayers |
||
38 | * @param array $uiProperties |
||
39 | * @param string $setPropertiesScriptEvent |
||
40 | * @param array $customWidgets |
||
41 | */ |
||
42 | public function __construct( |
||
55 | |||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function setStatus($status) |
||
85 | |||
86 | /** |
||
87 | * @param \SimpleXMLElement $element |
||
88 | * @param string $elementProperties |
||
89 | */ |
||
90 | protected function configureUiProperty(\SimpleXMLElement $element, $elementProperties) |
||
100 | } |
||
101 |
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: