Skip to content

Commit de3cc3a

Browse files
Use old namespace reconciliation behaviour in PHP > 8.1.24 (#8)
In PHP 8.1.25, the old namespace reconciliation behaviour was restored, see https://www.php.net/ChangeLog-8.php#PHP_8_1. Thus, we have to limit our workaround to versions between 8.1.21 and 8.1.24.
1 parent d760f5b commit de3cc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Webfactory/Dom/HTMLParsingHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function defineImplicitNamespaces(): array
6060
* but it perfectly matches our observation that changing the namespace order fixes several bugs and tests
6161
* in various private projects of ours.
6262
*/
63-
if (phpversion('xml') >= '8.1.21') {
63+
if ((phpversion('xml') >= '8.1.21') && (phpversion('xml') < '8.1.25')){
6464
return [
6565
'html' => 'http://www.w3.org/1999/xhtml', // für XPath
6666
'' => 'http://www.w3.org/1999/xhtml', // default ns

0 commit comments

Comments
 (0)