Fix violation to SOLID principles

Declaration of method `query` should be compatible with parent class one, otherwise triggers a PHP strict error
Merge pull request #43 from mouhamed/patch-3

Fix violation of SOLID principles