Bug XFES's FunctionOrder & Query::orderedBy() type hint incompatibility

There is a bug in this version
X

Xon

Guest
XFES uses XFES\Search\Query\FunctionOrder in some cases which is passed to orderedBy. However has the signature; Query::orderedBy(string|SqlOrder $order) :: static.

This gives a false positive about an incompatible argument type

It would be nice if FunctionOrder had a common base that was accepted by Query::orderedBy. That is FunctionOrder and SqlOrder should descend from a common base class.

Continue reading...