Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #18212 [DomCrawler] Use XML_ELEMENT_NODE in nodeType check (rva…
…nlaak) This PR was merged into the 2.3 branch. Discussion ---------- [DomCrawler] Use XML_ELEMENT_NODE in nodeType check | Q | A | ------------- | --- | Branch? | 2.3+ | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Making use of the predefined dom constant `XML_ELEMENT_NODE` (which value is `1`) makes more sense while interpreting `parents()` it's functionality. See http://php.net/manual/en/dom.constants.php Commits ------- cffea91 Use XML_ELEMENT_NODE in nodeType check
- Loading branch information