RSS Feed/News XFES's FunctionOrder & Query::orderedBy() type hint incompatibility

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
25,933
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top