RSS Feed/News Too wide Finder return types from various repository 'findXX' style functions

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
23,382
Points
823

Reputation:

Since XenForo now autogenerates finders for entities, a number of older repository function are typehinted to have @return Finder instead of the concrete type.

In most cases the explicit type hint can just be removed, and at best replaced with the actual type return type in the phpdocs

Continue reading...
 
Status
Not open for further replies.
Top