File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments