Skip to content

Commit 2a0024f

Browse files
committed
fixes #700; add TResult usage to AbstractQuery.stub
1 parent 31a924b commit 2a0024f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stubs/ORM/AbstractQuery.stub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ abstract class AbstractQuery
2424
}
2525

2626
/**
27+
* @phpstan-return TResult[]
2728
* @phpstan-impure
2829
* @param string|AbstractQuery::HYDRATE_* $hydrationMode
2930
*/
@@ -56,6 +57,7 @@ abstract class AbstractQuery
5657
}
5758

5859
/**
60+
* @phpstan-return ?TResult
5961
* @phpstan-impure
6062
* @param string|AbstractQuery::HYDRATE_*|null $hydrationMode
6163
* @throws NonUniqueResultException
@@ -65,6 +67,7 @@ abstract class AbstractQuery
6567
}
6668

6769
/**
70+
* @phpstan-return TResult
6871
* @phpstan-impure
6972
* @param string|AbstractQuery::HYDRATE_*|null $hydrationMode
7073
* @throws NonUniqueResultException

0 commit comments

Comments
 (0)