collections
collections copied to clipboard
Invalid PHPDoc for ExpressionBuilder::andX and ExpressionBuilder::orX
It looks like:
/**
* @param mixed ...$x
*
* @return CompositeExpression
*/
public function andX($x = null)
{
return new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
}
But this fails in PHPStan. It should be:
/**
* @param mixed $condition,...
*
* @return CompositeExpression
*/
public function andX()
{
return new CompositeExpression(CompositeExpression::TYPE_AND, func_get_args());
}