From 8540c3b934f7492951960ed43cc565e3c1530ed8 Mon Sep 17 00:00:00 2001 From: Martynas Sudintas <martynas.sudintas@ongr.io> Date: Fri, 27 Mar 2015 13:25:00 +0200 Subject: [PATCH] fixed hasQuery method in QueryAwareTrait --- Query/QueryAwareTrait.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Query/QueryAwareTrait.php b/Query/QueryAwareTrait.php index 6fabc7e..262fdd6 100644 --- a/Query/QueryAwareTrait.php +++ b/Query/QueryAwareTrait.php @@ -73,14 +73,13 @@ trait QueryAwareTrait /** * Checks if there is added specific query. * - * @param string $key - * @param string $boolType + * @param string $type Query type. * * @return bool */ - public function hasQuery($key, $boolType = Bool::MUST) + public function hasQuery($type) { - return array_key_exists($key, $this->queries[$boolType]); + return array_key_exists($type, $this->queries); } /** -- GitLab