Skip to content

Commit

Permalink
Allow creating mocks of the Query class (#10990)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Oct 10, 2023
1 parent 52853c2 commit 143ee25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/NativeQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

/**
* Represents a native SQL query.
*
* @final
*/
final class NativeQuery extends AbstractQuery
class NativeQuery extends AbstractQuery
{
/** @var string */
private $sql;
Expand Down
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@

/**
* A Query object represents a DQL query.
*
* @final
*/
final class Query extends AbstractQuery
class Query extends AbstractQuery
{
/**
* A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
Expand Down

0 comments on commit 143ee25

Please sign in to comment.