1 | <?php |
||
32 | class Roster extends Query implements XmlFactoryCollocations |
||
33 | { |
||
34 | /** |
||
35 | * Query constructor |
||
36 | * |
||
37 | * @param array $options { |
||
38 | * @var mixed $content Content of element |
||
39 | * @var array $attributes Element attributes |
||
40 | * @var array string $version Roster version (if server supports) |
||
41 | * @var Query\Roster\Item[] $items Roster version (if server supports) |
||
42 | * } |
||
43 | */ |
||
44 | public function __construct(array $options = []) |
||
48 | |||
49 | |||
50 | #region Version |
||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getVersion(): string |
||
58 | |||
59 | /** |
||
60 | * @param string $version |
||
61 | */ |
||
62 | public function setVersion(string $version) |
||
66 | #endregion |
||
67 | |||
68 | #region Items |
||
69 | /** |
||
70 | * @return Query\Roster\Item[] |
||
71 | */ |
||
72 | public function getItems(): array |
||
76 | |||
77 | /** |
||
78 | * @param Query\Roster\Item[] $items |
||
79 | */ |
||
80 | public function setItems(array $items) |
||
85 | #endregion |
||
86 | |||
87 | protected function appendChild($element) |
||
98 | |||
99 | public static function getXmlCollocations() : array |
||
105 | } |
||
106 |
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: