Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michal-tichy-84 opened this issue May 15, 2020 · 0 comments

Comments

@michal-tichy-84
Copy link

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());
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant