From d317ebdfb739c7820d98048d8f025c4e55842144 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Mon, 17 Dec 2018 17:35:48 +0300 Subject: [PATCH] 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 --- src/MicrodataParser.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/MicrodataParser.php b/src/MicrodataParser.php index 3d3dc03..3c3aba5 100644 --- a/src/MicrodataParser.php +++ b/src/MicrodataParser.php @@ -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;