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

Make the type annotation for CompositeExpression::count more specific #6188

Merged
merged 1 commit into from Oct 15, 2023

Conversation

oliverklee
Copy link
Contributor

This helps static analysis.

Q A
Type improvement
Fixed issues (none)

Summary

count cannot return a negative number. Add a PHPDoc annotation to make this clear for static analysis.

@derrabus derrabus added this to the 3.7.2 milestone Oct 15, 2023
@derrabus derrabus merged commit 45941c6 into doctrine:3.7.x Oct 15, 2023
84 checks passed
@oliverklee oliverklee deleted the cleanup/count-annotations branch October 15, 2023 19:34
derrabus added a commit that referenced this pull request Nov 2, 2023
* 3.7.x:
  MySQLSchemaManager. Check expected database type for json columns only. (#6189)
  Make the type annotation for CompositeExpression::count more specific (#6188)
derrabus added a commit to derrabus/dbal that referenced this pull request Nov 3, 2023
* 3.8.x:
  Run tests on MySQL 8.2 (doctrine#6207)
  MySQLSchemaManager. Check expected database type for json columns only. (doctrine#6189)
  Make the type annotation for CompositeExpression::count more specific (doctrine#6188)
derrabus added a commit to derrabus/dbal that referenced this pull request Nov 5, 2023
* 3.8.x:
  Run tests on MySQL 8.2 (doctrine#6207)
  MySQLSchemaManager. Check expected database type for json columns only. (doctrine#6189)
  Make the type annotation for CompositeExpression::count more specific (doctrine#6188)
derrabus added a commit to derrabus/dbal that referenced this pull request Nov 5, 2023
* 3.8.x:
  Generalize CustomIntrospectionTest (doctrine#6210)
  Run tests on MySQL 8.2 (doctrine#6207)
  MySQLSchemaManager. Check expected database type for json columns only. (doctrine#6189)
  Make the type annotation for CompositeExpression::count more specific (doctrine#6188)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants