Fix violation to SOLID principles

Declaration of query method should be compatible with parent class one, otherwise triggers a PHP strict error