Skip to content

Commit a64d254

Browse files
committed
[GH-7982] Bugfix: Passing string|null DQL to Lexer(string $input) leads to downstream notice.
1 parent 3bc1096 commit a64d254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/ORM/Query/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function __construct(Query $query)
189189
{
190190
$this->query = $query;
191191
$this->em = $query->getEntityManager();
192-
$this->lexer = new Lexer($query->getDQL());
192+
$this->lexer = new Lexer((string) $query->getDQL());
193193
$this->parserResult = new ParserResult();
194194
}
195195

0 commit comments

Comments
 (0)