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

Xon

Well-known member
Affected version
2.3.2
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.
 
Back
Top Bottom