Skip to content

Commit e4678fa

Browse files
VincentLangletondrejmirtes
authored andcommitted
Add missing throws tag
1 parent 69aaa52 commit e4678fa

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

extension.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ parameters:
4040
- stubs/ORM/Id/AbstractIdGenerator.stub
4141
- stubs/ORM/Mapping/ClassMetadata.stub
4242
- stubs/ORM/Mapping/ClassMetadataInfo.stub
43+
- stubs/ORM/NonUniqueResultException.stub
4344
- stubs/ORM/ORMException.stub
45+
- stubs/ORM/UnexpectedResultException.stub
4446
- stubs/ORM/Query/Expr.stub
4547
- stubs/ORM/Query.stub
4648
- stubs/ORM/Query/Expr/Comparison.stub

stubs/ORM/AbstractQuery.stub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Doctrine\ORM;
44

55
use Doctrine\Common\Collections\ArrayCollection;
6+
use Doctrine\ORM\NonUniqueResultException;
67

78
/**
89
* @template-covariant TKey The type of column used in indexBy
@@ -22,6 +23,8 @@ abstract class AbstractQuery
2223

2324
/**
2425
* @return bool|float|int|string|null
26+
*
27+
* @throws NonUniqueResultException
2528
*/
2629
public function getSingleScalarResult();
2730

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Doctrine\ORM;
4+
5+
class NonUniqueResultException extends UnexpectedResultException
6+
{
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Doctrine\ORM;
4+
5+
use Doctrine\ORM\Exception\ORMException;
6+
7+
class UnexpectedResultException extends ORMException
8+
{
9+
}

0 commit comments

Comments
 (0)