Skip to content

Commit 2325739

Browse files
committed
fixed @return when returning this or static
1 parent 3b37ddb commit 2325739

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Exception/SyntaxErrorException.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SyntaxErrorException extends ParseException
2727
* @param string $expectedValue
2828
* @param Token $foundToken
2929
*
30-
* @return SyntaxErrorException
30+
* @return self
3131
*/
3232
public static function unexpectedToken($expectedValue, Token $foundToken)
3333
{
@@ -38,7 +38,7 @@ public static function unexpectedToken($expectedValue, Token $foundToken)
3838
* @param string $pseudoElement
3939
* @param string $unexpectedLocation
4040
*
41-
* @return SyntaxErrorException
41+
* @return self
4242
*/
4343
public static function pseudoElementFound($pseudoElement, $unexpectedLocation)
4444
{
@@ -48,23 +48,23 @@ public static function pseudoElementFound($pseudoElement, $unexpectedLocation)
4848
/**
4949
* @param int $position
5050
*
51-
* @return SyntaxErrorException
51+
* @return self
5252
*/
5353
public static function unclosedString($position)
5454
{
5555
return new self(sprintf('Unclosed/invalid string at %s.', $position));
5656
}
5757

5858
/**
59-
* @return SyntaxErrorException
59+
* @return self
6060
*/
6161
public static function nestedNot()
6262
{
6363
return new self('Got nested ::not().');
6464
}
6565

6666
/**
67-
* @return SyntaxErrorException
67+
* @return self
6868
*/
6969
public static function stringAsFunctionArgument()
7070
{

Node/Specificity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct($a, $b, $c)
5959
/**
6060
* @param Specificity $specificity
6161
*
62-
* @return Specificity
62+
* @return self
6363
*/
6464
public function plus(Specificity $specificity)
6565
{

Parser/TokenStream.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TokenStream
5959
*
6060
* @param Token $token
6161
*
62-
* @return TokenStream
62+
* @return $this
6363
*/
6464
public function push(Token $token)
6565
{
@@ -71,7 +71,7 @@ public function push(Token $token)
7171
/**
7272
* Freezes stream.
7373
*
74-
* @return TokenStream
74+
* @return $this
7575
*/
7676
public function freeze()
7777
{

XPath/Extension/NodeExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($flags = 0)
4848
* @param int $flag
4949
* @param bool $on
5050
*
51-
* @return NodeExtension
51+
* @return $this
5252
*/
5353
public function setFlag($flag, $on)
5454
{

XPath/Translator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or
144144
*
145145
* @param Extension\ExtensionInterface $extension
146146
*
147-
* @return Translator
147+
* @return $this
148148
*/
149149
public function registerExtension(Extension\ExtensionInterface $extension)
150150
{
@@ -180,7 +180,7 @@ public function getExtension($name)
180180
*
181181
* @param ParserInterface $shortcut
182182
*
183-
* @return Translator
183+
* @return $this
184184
*/
185185
public function registerParserShortcut(ParserInterface $shortcut)
186186
{

XPath/XPathExpr.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getElement()
6464
/**
6565
* @param $condition
6666
*
67-
* @return XPathExpr
67+
* @return $this
6868
*/
6969
public function addCondition($condition)
7070
{
@@ -82,7 +82,7 @@ public function getCondition()
8282
}
8383

8484
/**
85-
* @return XPathExpr
85+
* @return $this
8686
*/
8787
public function addNameTest()
8888
{
@@ -95,7 +95,7 @@ public function addNameTest()
9595
}
9696

9797
/**
98-
* @return XPathExpr
98+
* @return $this
9999
*/
100100
public function addStarPrefix()
101101
{
@@ -110,7 +110,7 @@ public function addStarPrefix()
110110
* @param string $combiner
111111
* @param XPathExpr $expr
112112
*
113-
* @return XPathExpr
113+
* @return $this
114114
*/
115115
public function join($combiner, XPathExpr $expr)
116116
{

0 commit comments

Comments
 (0)