Skip to content
Snippets Groups Projects
Commit c1faa731 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

Merge pull request #302 from martiis/issue-291

fixed hasQuery method in QueryAwareTrait
parents 97292a78 8540c3b9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment