collections icon indicating copy to clipboard operation
collections copied to clipboard

Invalid PHPDoc for ExpressionBuilder::andX and ExpressionBuilder::orX

Open michal-tichy-84 opened this issue 4 years ago • 0 comments

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());
    }

michal-tichy-84 avatar May 15 '20 11:05 michal-tichy-84