Remove registering of DOMDocument
As stated in documentation of DOMDocument, registering DOMDocument is unnecessary. Source: https://secure.php.net/manual/en/domdocument.registernodeclass.php#example-6650
This commit is contained in:
parent
e26f84fd0c
commit
d317ebdfb7
@ -14,7 +14,6 @@ class MicrodataParser
|
||||
*/
|
||||
public function __construct(MicrodataDOMDocument $dom)
|
||||
{
|
||||
$dom->registerNodeClass(\DOMDocument::class, MicrodataDOMDocument::class);
|
||||
$dom->registerNodeClass(\DOMElement::class, MicrodataDOMElement::class);
|
||||
|
||||
$this->dom = $dom;
|
||||
|
Loading…
Reference in New Issue
Block a user