Skip to content

Commit 3a61e2e

Browse files
Fix return types
1 parent 00849ec commit 3a61e2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

XPath/XPathExpr.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getElement(): string
4646
/**
4747
* @return $this
4848
*/
49-
public function addCondition(string $condition): self
49+
public function addCondition(string $condition): static
5050
{
5151
$this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;
5252

@@ -61,7 +61,7 @@ public function getCondition(): string
6161
/**
6262
* @return $this
6363
*/
64-
public function addNameTest(): self
64+
public function addNameTest(): static
6565
{
6666
if ('*' !== $this->element) {
6767
$this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
@@ -74,7 +74,7 @@ public function addNameTest(): self
7474
/**
7575
* @return $this
7676
*/
77-
public function addStarPrefix(): self
77+
public function addStarPrefix(): static
7878
{
7979
$this->path .= '*/';
8080

0 commit comments

Comments
 (0)