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:
Yusuf Kandemir 2018-12-17 17:35:48 +03:00
parent e26f84fd0c
commit d317ebdfb7

View File

@ -14,7 +14,6 @@ class MicrodataParser
*/ */
public function __construct(MicrodataDOMDocument $dom) public function __construct(MicrodataDOMDocument $dom)
{ {
$dom->registerNodeClass(\DOMDocument::class, MicrodataDOMDocument::class);
$dom->registerNodeClass(\DOMElement::class, MicrodataDOMElement::class); $dom->registerNodeClass(\DOMElement::class, MicrodataDOMElement::class);
$this->dom = $dom; $this->dom = $dom;