Skip to content

Add @no-named-arguments to QueryBuilder select and group helpers - #12513

Open
savinmikhail wants to merge 1 commit into
doctrine:3.7.xfrom
savinmikhail:codex/querybuilder-no-named-arguments-select-groupby
Open

Add @no-named-arguments to QueryBuilder select and group helpers#12513
savinmikhail wants to merge 1 commit into
doctrine:3.7.xfrom
savinmikhail:codex/querybuilder-no-named-arguments-select-groupby

Conversation

@savinmikhail

Copy link
Copy Markdown

Summary

Add @no-named-arguments to the variadic QueryBuilder helpers used for projections and grouping:

  • select()
  • addSelect()
  • groupBy()
  • addGroupBy()

Why this is separate from #12512

I split this out from the where() / having() condition helpers on purpose.

The first PR focused on the most obvious condition-building methods, where named arguments are especially misleading for the variadic predicate-style API and where there is already a related bug signal in #11253.

This PR covers a second group of variadic helpers where the main concern is API contract clarity and tooling guidance: the parameter names are still implementation details rather than something that should be treated as a stable named-argument contract.

Related

Validation

  • vendor/bin/phpunit tests/Tests/ORM/QueryBuilderTest.php
  • vendor/bin/phpcs --standard=phpcs.xml.dist src/QueryBuilder.php

@savinmikhail
savinmikhail marked this pull request as ready for review June 20, 2026 04:20
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

Successfully merging this pull request may close these issues.

1 participant