It seems like $domNode->childNodes of type object<DOMNodeList> is incompatible with the declared type object<Cion\TextToSpeech\Sources\DOMNodeList> of property $_nodeList.
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..
Loading history...
30
}
31
32
/**
33
* Returns the current DOMNode
34
* @return DOMNode
35
*/
36
public function current()
37
{
38
return $this->_nodeList->item($this->_position);
39
}
40
41
/**
42
* Returns an iterator for the current iterator entry
43
* @return RecursiveDOMIterator
44
*/
45
public function getChildren()
46
{
47
return new self($this->current());
48
}
49
50
/**
51
* Returns if an iterator can be created for the current entry.
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.