We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ... operator is not correctly detected in phpdocs.
Doctrine added ... lately the following to its phpdocs before it was without the ...:
...
/** * @param mixed ...$x * * @return CompositeExpression */ public function orX($x = null) { return new CompositeExpression(CompositeExpression::TYPE_OR, func_get_args()); }
Errors with:
124 Parameter #1 $x of method Doctrine\Common\Collections\ExpressionBuilder::orX() expects array<int, mixed>|null, Doctrine\Common\Collections\Expr\Comparison given.
https://phpstan.org/r/aba9598f-b904-479d-b95e-a83d41d875fe
Should not error as the type sfor $parameter #1, .... should still be mixed.
The text was updated successfully, but these errors were encountered:
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review.
Sorry, something went wrong.
I have just go here to add same issue but I see there is more affected users. psalm works correctly with this.
I have the same error, here's the playground example: https://phpstan.org/r/b5fd0536-7a9a-4fa3-bf52-ea28d7abeffd
Fixed: phpstan/phpstan-src@a599eaa
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Bug report
The ... operator is not correctly detected in phpdocs.
Code snippet that reproduces the problem
Doctrine added
...
lately the following to its phpdocs before it was without the...
:Errors with:
https://phpstan.org/r/aba9598f-b904-479d-b95e-a83d41d875fe
Expected output
Should not error as the type sfor $parameter #1, .... should still be mixed.
The text was updated successfully, but these errors were encountered: