From b2f5da19a4ab28b70e565d6e9a195be0b3b90013 Mon Sep 17 00:00:00 2001 From: ReenExe Date: Sun, 3 Jul 2016 01:01:25 +0300 Subject: [PATCH] clear code --- lib/Doctrine/ORM/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Query.php b/lib/Doctrine/ORM/Query.php index e3f23cc6b..6a8a50ae0 100644 --- a/lib/Doctrine/ORM/Query.php +++ b/lib/Doctrine/ORM/Query.php @@ -309,7 +309,9 @@ final class Query extends AbstractQuery if ($paramCount > $mappingCount) { throw QueryException::tooManyParameters($mappingCount, $paramCount); - } elseif ($paramCount < $mappingCount) { + } + + if ($paramCount < $mappingCount) { throw QueryException::tooFewParameters($mappingCount, $paramCount); }