Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.3.x' into 1.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Aug 9, 2023
2 parents 064c30a + e4678fa commit bf9c2ea
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ parameters:
- stubs/ORM/Id/AbstractIdGenerator.stub
- stubs/ORM/Mapping/ClassMetadata.stub
- stubs/ORM/Mapping/ClassMetadataInfo.stub
- stubs/ORM/NonUniqueResultException.stub
- stubs/ORM/ORMException.stub
- stubs/ORM/UnexpectedResultException.stub
- stubs/ORM/Query/Expr.stub
- stubs/ORM/Query.stub
- stubs/ORM/Query/Expr/Comparison.stub
Expand Down
3 changes: 3 additions & 0 deletions stubs/ORM/AbstractQuery.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Doctrine\ORM;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\NonUniqueResultException;

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

/**
* @return bool|float|int|string|null
*
* @throws NonUniqueResultException
*/
public function getSingleScalarResult();

Expand Down
7 changes: 7 additions & 0 deletions stubs/ORM/NonUniqueResultException.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Doctrine\ORM;

class NonUniqueResultException extends UnexpectedResultException
{
}
9 changes: 9 additions & 0 deletions stubs/ORM/UnexpectedResultException.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Doctrine\ORM;

use Doctrine\ORM\Exception\ORMException;

class UnexpectedResultException extends ORMException
{
}

0 comments on commit bf9c2ea

Please sign in to comment.