[PR #10721] Narrow return types for AbstractQuery::getSingleScalarResult() #12565

Closed
opened 2026-01-22 16:14:27 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10721

State: closed
Merged: Yes


Tests were also improved:

  • QueryTest::testGetSingleScalarResultThrowsExceptionOnNonUniqueResult() was updated to ensure NonUniqueResultException is thrown only on results with multiple rows;
  • QueryTest::testGetSingleScalarResultThrowsExceptionOnSingleRowWithMultipleColumns() was added to ensure NonUniqueResultException is thrown only on results with multiple columns; <- These changes were moved to #10722 (see https://github.com/doctrine/orm/pull/10721#pullrequestreview-1438679926).

Closes #10695

**Original Pull Request:** https://github.com/doctrine/orm/pull/10721 **State:** closed **Merged:** Yes --- ~~Tests were also improved:~~ * ~~`QueryTest::testGetSingleScalarResultThrowsExceptionOnNonUniqueResult()` was updated to ensure `NonUniqueResultException` is thrown only on results with multiple rows;~~ * ~~`QueryTest::testGetSingleScalarResultThrowsExceptionOnSingleRowWithMultipleColumns()` was added to ensure `NonUniqueResultException` is thrown only on results with multiple columns;~~ <- These changes were moved to #10722 (see https://github.com/doctrine/orm/pull/10721#pullrequestreview-1438679926). Closes #10695
admin added the pull-request label 2026-01-22 16:14:27 +01:00
admin closed this issue 2026-01-22 16:14:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12565