Fix violation to SOLID principles

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