minor changes in Query class

small improvements for new documentation in https://github.com/ruflin/Elastica.io/pull/27
I just thought it would be better then getting a Fatal Error on
$rescore->toArray() line.

What do you suggest to do to take the release process into account?
Am 14.12.2014 18:36 schrieb "Filip Procházka" <notifications@github.com>:

> In lib/Elastica/Query.php
> <https://github.com/ruflin/Elastica/pull/733#discussion-diff-21797723>:
>
> >       */
> > -    public function setRescore($rescore)
> > +    public function setRescore(AbstractRescore $rescore)
>
> You realize that by adding a new typehint to class that somebody might be
> extending is a BC break? Adding typehints is a good thing, but then the
> release process should take that into account (=change like this should not
> appear in patch version release and ideally not even in feature version
> release).
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ruflin/Elastica/pull/733/files#r21797723>.
>