From 833eb3a9a9abffac04f8ba611122f5d9be0f8043 Mon Sep 17 00:00:00 2001 From: lutangar Date: Thu, 26 Aug 2021 08:25:45 +0200 Subject: [PATCH] fix(xpath): fix removing an existing xpath Some setters of nullable properties should be able to be called without any argument (or with a null argument) Fix #435 --- src/Entity/MatchingContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity/MatchingContext.php b/src/Entity/MatchingContext.php index c81a8df..12201f9 100644 --- a/src/Entity/MatchingContext.php +++ b/src/Entity/MatchingContext.php @@ -357,7 +357,7 @@ public function getQuerySelector(): ?string /** * @return MatchingContext */ - public function setQuerySelector(string $querySelector): self + public function setQuerySelector(?string $querySelector): self { $this->querySelector = $querySelector; @@ -372,7 +372,7 @@ public function getXpath(): ?string return $this->xpath; } - public function setXpath(string $xpath): void + public function setXpath(?string $xpath): void { $this->xpath = $xpath; }