Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b70699

Browse files
committed
Narrow return types for AbstractQuery::getSingleScalarResult()
1 parent 8fba9d6 commit 6b70699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Doctrine/ORM/AbstractQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ public function getSingleResult($hydrationMode = null)
10101010
*
10111011
* Alias for getSingleResult(HYDRATE_SINGLE_SCALAR).
10121012
*
1013-
* @return mixed The scalar result.
1013+
* @return bool|float|int|string The scalar result.
10141014
*
10151015
* @throws NoResultException If the query returned no result.
10161016
* @throws NonUniqueResultException If the query result is not unique.

0 commit comments

Comments
 (0)