Changed the decleration of the query method in order to pass the strickt php chenks