diff --git a/Query/QueryAwareTrait.php b/Query/QueryAwareTrait.php index 6fabc7eddfb03842022f412d260c26dc19603335..262fdd694193f93565cd366245c043cf1ec07c72 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); } /**