Skip to content

Commit

Permalink
QO refactoring: remove pointless reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Nov 13, 2015
1 parent ed3ea61 commit 5ed5f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kdyby/Doctrine/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private function toQuery($query)

if (!$query instanceof Doctrine\ORM\AbstractQuery) {
throw new UnexpectedValueException(
"Method " . $this->getReflection()->getMethod('doCreateQuery') . " must return " .
"Method " . get_called_class() . "::doCreateQuery must return " .
"instanceof Doctrine\\ORM\\Query or Kdyby\\Doctrine\\QueryBuilder or Kdyby\\Doctrine\\DqlSelection, " .
(is_object($query) ? 'instance of ' . get_class($query) : gettype($query)) . " given."
);
Expand Down

0 comments on commit 5ed5f89

Please sign in to comment.