diff --git a/build/kint.phar b/build/kint.phar index 780896ff..f759230a 100644 Binary files a/build/kint.phar and b/build/kint.phar differ diff --git a/init.php b/init.php index 6d7c4842..60e58f66 100644 --- a/init.php +++ b/init.php @@ -44,6 +44,7 @@ \define('KINT_PHP82', \version_compare(PHP_VERSION, '8.2') >= 0); \define('KINT_PHP83', \version_compare(PHP_VERSION, '8.3') >= 0); \define('KINT_PHP84', \version_compare(PHP_VERSION, '8.4') >= 0); +\define('KINT_PHP85', \version_compare(PHP_VERSION, '8.5') >= 0); // Dynamic default settings if (\strlen((string) \ini_get('xdebug.file_link_format')) > 0) { diff --git a/src/Parser/DomPlugin.php b/src/Parser/DomPlugin.php index d12e2f4c..34c13a8a 100644 --- a/src/Parser/DomPlugin.php +++ b/src/Parser/DomPlugin.php @@ -154,6 +154,7 @@ class DomPlugin extends AbstractPlugin implements PluginBeginInterface 'childElementCount' => KINT_PHP80, 'previousElementSibling' => KINT_PHP80, 'nextElementSibling' => KINT_PHP80, + 'outerHTML' => !KINT_PHP85, ]; /** @@ -463,15 +464,15 @@ public static function getKnownProperties(object $var): array if ($var instanceof DOMElement) { $known_properties += self::DOMELEMENT_PROPS; } + } - foreach (self::DOM_VERSIONS as $key => $val) { - /** - * @psalm-var bool $val - * Psalm bug #4509 - */ - if (false === $val) { - unset($known_properties[$key]); // @codeCoverageIgnore - } + foreach (self::DOM_VERSIONS as $key => $val) { + /** + * @psalm-var bool $val + * Psalm bug #4509 + */ + if (false === $val) { + unset($known_properties[$key]); // @codeCoverageIgnore } }