Skip to content

Commit

Permalink
Add back throws annotation to getSingleScalarResult (doctrine#10907)
Browse files Browse the repository at this point in the history
Fix regression introduced in doctrine#10870

`$result = $this->execute(null, $hydrationMode);` in `getSingleResult` can still throw NoResultException exception.
  • Loading branch information
darenas31415 authored Aug 13, 2023
1 parent d1922a3 commit 5577d51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,7 @@ public function getSingleResult($hydrationMode = null)
*
* @return bool|float|int|string|null The scalar result.
*
* @throws NoResultException If the query returned no result.
* @throws NonUniqueResultException If the query result is not unique.
*/
public function getSingleScalarResult()
Expand Down

0 comments on commit 5577d51

Please sign in to comment.