Changed \DOMElement typehints to MicrodataDOMElement

This commit is contained in:
Yusuf Kandemir 2018-11-11 23:07:44 +03:00
parent da88066237
commit 87dd20f753
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class MicrodataParser
return $result; return $result;
} }
protected function getObject(\DOMElement $item, $memory = []) protected function getObject(MicrodataDOMElement $item, $memory = [])
{ {
$result = new \stdClass; $result = new \stdClass;
@ -71,6 +71,6 @@ class MicrodataParser
protected function isItem($element) protected function isItem($element)
{ {
return $element instanceof \DOMElement && $element->hasAttribute('itemscope'); return $element instanceof MicrodataDOMElement && $element->hasAttribute('itemscope');
} }
} }