Skip to content

Commit

Permalink
Merge branch '2.8' into 3.1
Browse files Browse the repository at this point in the history
* 2.8:
  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
  • Loading branch information
fabpot committed Dec 27, 2016
2 parents a37b335 + ea25874 commit 23fe250
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions Exception/SyntaxErrorException.php
Expand Up @@ -27,7 +27,7 @@ class SyntaxErrorException extends ParseException
* @param string $expectedValue
* @param Token $foundToken
*
* @return SyntaxErrorException
* @return self
*/
public static function unexpectedToken($expectedValue, Token $foundToken)
{
Expand All @@ -38,7 +38,7 @@ public static function unexpectedToken($expectedValue, Token $foundToken)
* @param string $pseudoElement
* @param string $unexpectedLocation
*
* @return SyntaxErrorException
* @return self
*/
public static function pseudoElementFound($pseudoElement, $unexpectedLocation)
{
Expand All @@ -48,23 +48,23 @@ public static function pseudoElementFound($pseudoElement, $unexpectedLocation)
/**
* @param int $position
*
* @return SyntaxErrorException
* @return self
*/
public static function unclosedString($position)
{
return new self(sprintf('Unclosed/invalid string at %s.', $position));
}

/**
* @return SyntaxErrorException
* @return self
*/
public static function nestedNot()
{
return new self('Got nested ::not().');
}

/**
* @return SyntaxErrorException
* @return self
*/
public static function stringAsFunctionArgument()
{
Expand Down
2 changes: 1 addition & 1 deletion Node/Specificity.php
Expand Up @@ -61,7 +61,7 @@ public function __construct($a, $b, $c)
/**
* @param Specificity $specificity
*
* @return Specificity
* @return self
*/
public function plus(Specificity $specificity)
{
Expand Down
4 changes: 2 additions & 2 deletions Parser/TokenStream.php
Expand Up @@ -61,7 +61,7 @@ class TokenStream
*
* @param Token $token
*
* @return TokenStream
* @return $this
*/
public function push(Token $token)
{
Expand All @@ -73,7 +73,7 @@ public function push(Token $token)
/**
* Freezes stream.
*
* @return TokenStream
* @return $this
*/
public function freeze()
{
Expand Down
2 changes: 1 addition & 1 deletion XPath/Extension/NodeExtension.php
Expand Up @@ -50,7 +50,7 @@ public function __construct($flags = 0)
* @param int $flag
* @param bool $on
*
* @return NodeExtension
* @return $this
*/
public function setFlag($flag, $on)
{
Expand Down
4 changes: 2 additions & 2 deletions XPath/Translator.php
Expand Up @@ -146,7 +146,7 @@ public function selectorToXPath(SelectorNode $selector, $prefix = 'descendant-or
*
* @param Extension\ExtensionInterface $extension
*
* @return Translator
* @return $this
*/
public function registerExtension(Extension\ExtensionInterface $extension)
{
Expand Down Expand Up @@ -182,7 +182,7 @@ public function getExtension($name)
*
* @param ParserInterface $shortcut
*
* @return Translator
* @return $this
*/
public function registerParserShortcut(ParserInterface $shortcut)
{
Expand Down
8 changes: 4 additions & 4 deletions XPath/XPathExpr.php
Expand Up @@ -66,7 +66,7 @@ public function getElement()
/**
* @param $condition
*
* @return XPathExpr
* @return $this
*/
public function addCondition($condition)
{
Expand All @@ -84,7 +84,7 @@ public function getCondition()
}

/**
* @return XPathExpr
* @return $this
*/
public function addNameTest()
{
Expand All @@ -97,7 +97,7 @@ public function addNameTest()
}

/**
* @return XPathExpr
* @return $this
*/
public function addStarPrefix()
{
Expand All @@ -112,7 +112,7 @@ public function addStarPrefix()
* @param string $combiner
* @param XPathExpr $expr
*
* @return XPathExpr
* @return $this
*/
public function join($combiner, XPathExpr $expr)
{
Expand Down

0 comments on commit 23fe250

Please sign in to comment.