Skip to content

Commit 666f2de

Browse files
committed
Merge branch '3.1' into 3.2
* 3.1: fixed @return when returning this or static override property constraints in child class removed unneeded comment [Console] improved code coverage of Command class [FrameworkBundle] Make TemplateController working without the Templating component Only count on arrays or countables to avoid warnings in PHP 7.2
2 parents e1241f2 + 23fe250 commit 666f2de

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Exception/SyntaxErrorException.php

Lines changed: 5 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct($a, $b, $c)
6161
/**
6262
* @param Specificity $specificity
6363
*
64-
* @return Specificity
64+
* @return self
6565
*/
6666
public function plus(Specificity $specificity)
6767
{

Parser/TokenStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class TokenStream
6161
*
6262
* @param Token $token
6363
*
64-
* @return TokenStream
64+
* @return $this
6565
*/
6666
public function push(Token $token)
6767
{
@@ -73,7 +73,7 @@ public function push(Token $token)
7373
/**
7474
* Freezes stream.
7575
*
76-
* @return TokenStream
76+
* @return $this
7777
*/
7878
public function freeze()
7979
{

XPath/Extension/NodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct($flags = 0)
5050
* @param int $flag
5151
* @param bool $on
5252
*
53-
* @return NodeExtension
53+
* @return $this
5454
*/
5555
public function setFlag($flag, $on)
5656
{

XPath/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or
146146
*
147147
* @param Extension\ExtensionInterface $extension
148148
*
149-
* @return Translator
149+
* @return $this
150150
*/
151151
public function registerExtension(Extension\ExtensionInterface $extension)
152152
{
@@ -182,7 +182,7 @@ public function getExtension($name)
182182
*
183183
* @param ParserInterface $shortcut
184184
*
185-
* @return Translator
185+
* @return $this
186186
*/
187187
public function registerParserShortcut(ParserInterface $shortcut)
188188
{

XPath/XPathExpr.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getElement()
6666
/**
6767
* @param $condition
6868
*
69-
* @return XPathExpr
69+
* @return $this
7070
*/
7171
public function addCondition($condition)
7272
{
@@ -84,7 +84,7 @@ public function getCondition()
8484
}
8585

8686
/**
87-
* @return XPathExpr
87+
* @return $this
8888
*/
8989
public function addNameTest()
9090
{
@@ -97,7 +97,7 @@ public function addNameTest()
9797
}
9898

9999
/**
100-
* @return XPathExpr
100+
* @return $this
101101
*/
102102
public function addStarPrefix()
103103
{
@@ -112,7 +112,7 @@ public function addStarPrefix()
112112
* @param string $combiner
113113
* @param XPathExpr $expr
114114
*
115-
* @return XPathExpr
115+
* @return $this
116116
*/
117117
public function join($combiner, XPathExpr $expr)
118118
{

0 commit comments

Comments
 (0)