From b491d83c316ccb39f86d2ecc3589a14c2887629a Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 24 Aug 2022 16:14:46 +0200 Subject: [PATCH 01/23] CI: run tests on PHP 8.2 --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9eaa83e3b..e788c2e9c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,8 @@ jobs: random: true - php: '8.1' experimental: true + - php: '8.2' + experimental: true steps: - name: Checkout From 525e91853ce74d56cdd656ee08dd5494ed3ad200 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 24 Aug 2022 16:21:32 +0200 Subject: [PATCH 02/23] Avoid dynamic properties in the `Document` class --- src/Dom/Document.php | 89 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 77 insertions(+), 12 deletions(-) diff --git a/src/Dom/Document.php b/src/Dom/Document.php index 26f94a3fc..d41950811 100644 --- a/src/Dom/Document.php +++ b/src/Dom/Document.php @@ -32,18 +32,6 @@ /** * Abstract away some of the difficulties of working with PHP's DOMDocument. * - * @property DOMXPath $xpath XPath query object for this document. - * @property Element $html The document's element. - * @property Element $head The document's element. - * @property Element $body The document's element. - * @property Element|null $charset The document's charset meta element. - * @property Element|null $viewport The document's viewport meta element. - * @property DOMNodeList $ampElements The document's elements. - * @property Element $ampCustomStyle The document's