From 8ce2e9c4f4f112352e6bd2e4d32c0f3d8fd5fdb1 Mon Sep 17 00:00:00 2001 From: Arne Blankerts Date: Sun, 3 Mar 2024 13:26:29 +0100 Subject: [PATCH] Revert "Avoid "use" for Attribute usage not supported in PHP < 8.0" This reverts commit 045fcabdced70778e8160d39823e3a1f09aa57c9. --- src/xml/ElementCollection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xml/ElementCollection.php b/src/xml/ElementCollection.php index 846a4a1..9e1de56 100644 --- a/src/xml/ElementCollection.php +++ b/src/xml/ElementCollection.php @@ -13,6 +13,7 @@ use DOMElement; use DOMNodeList; use Iterator; +use ReturnTypeWillChange; use function count; use function get_class; use function sprintf; @@ -30,7 +31,7 @@ public function __construct(DOMNodeList $nodeList) { $this->importNodes($nodeList); } - #[\ReturnTypeWillChange] + #[ReturnTypeWillChange] abstract public function current(); public function next(): void {