Skip to content

Commit

Permalink
fix(xpath): fix removing an existing xpath
Browse files Browse the repository at this point in the history
Some setters of nullable properties should be able to be called without any argument (or with a null argument)

Fix #435
  • Loading branch information
lutangar committed Aug 26, 2021
1 parent 72c6cf6 commit 833eb3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/MatchingContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit 833eb3a

Please sign in to comment.