Skip to content

Commit

Permalink
Add back noResultException
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 28, 2023
1 parent e4678fa commit 000e98d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ parameters:
- stubs/ORM/Mapping/ClassMetadata.stub
- stubs/ORM/Mapping/ClassMetadataInfo.stub
- stubs/ORM/NonUniqueResultException.stub
- stubs/ORM/NoResultException.stub
- stubs/ORM/ORMException.stub
- stubs/ORM/UnexpectedResultException.stub
- stubs/ORM/Query/Expr.stub
Expand Down
1 change: 1 addition & 0 deletions stubs/ORM/AbstractQuery.stub
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ abstract class AbstractQuery
/**
* @return bool|float|int|string|null
*
* @throws NoResultException
* @throws NonUniqueResultException
*/
public function getSingleScalarResult();
Expand Down
7 changes: 7 additions & 0 deletions stubs/ORM/NoResultException.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Doctrine\ORM;

class NoResultException extends UnexpectedResultException
{
}

0 comments on commit 000e98d

Please sign in to comment.