diff options
author | Pedro Amorim <[email protected]> | 2018-01-10 16:44:13 +0100 |
---|---|---|
committer | Pedro Amorim <[email protected]> | 2018-01-11 16:07:48 +0100 |
commit | 12982d521cf0d8ddf0b05b12f0bcb53fa7c3a799 (patch) | |
tree | a01b3c465e8497189d0d04dc59d141ec0986e079 /src/Nodes/DOM/DOMDocument.php | |
parent | bfd367ec38a0050278261b461a725683af1361ff (diff) |
Add missing DOM class DOMEntityReference.
Fix error:
Uncaught Error: Call to undefined method DOMEntityReference::getAttribute() in vendor/andreskrey/readability.php/src/Readability.php:528
Diffstat (limited to 'src/Nodes/DOM/DOMDocument.php')
-rw-r--r-- | src/Nodes/DOM/DOMDocument.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Nodes/DOM/DOMDocument.php b/src/Nodes/DOM/DOMDocument.php index b99d464..a83f5b9 100644 --- a/src/Nodes/DOM/DOMDocument.php +++ b/src/Nodes/DOM/DOMDocument.php @@ -24,5 +24,6 @@ class DOMDocument extends \DOMDocument $this->registerNodeClass('DOMNotation', DOMNotation::class); $this->registerNodeClass('DOMProcessingInstruction', DOMProcessingInstruction::class); $this->registerNodeClass('DOMText', DOMText::class); + $this->registerNodeClass('DOMEntityReference', DOMEntityReference::class); } } |