summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-07-16 13:13:54 +0000
committerwn_ <[email protected]>2022-07-16 13:13:54 +0000
commitb9cc0945d80952cbc0a72cd8d7858e5e2dd510cf (patch)
tree1a3034c90431390cc6a77d73cdf6953f1e97d2ff
parentec7fb4d8504118d918699d5df8cd07c91af2f9b3 (diff)
Add 'ReturnTypeWillChange' to 2 methods in 'NodeTrait'.
-rw-r--r--src/Nodes/NodeTrait.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Nodes/NodeTrait.php b/src/Nodes/NodeTrait.php
index d72c08d..1e9e3d1 100644
--- a/src/Nodes/NodeTrait.php
+++ b/src/Nodes/NodeTrait.php
@@ -167,6 +167,7 @@ trait NodeTrait
*
* @return string
*/
+ #[\ReturnTypeWillChange]
public function getAttribute($attributeName)
{
if (!is_null($this->attributes)) {
@@ -185,6 +186,7 @@ trait NodeTrait
*
* @see getAttribute
*/
+ #[\ReturnTypeWillChange]
public function hasAttribute($attributeName)
{
if (!is_null($this->attributes)) {