RSS Feed/News Incorrect phrase entity docblocks in Entities

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
34,408
Points
823

Reputation:

Multiple core entities have incorrect imports, and shortnames causes incorrect docblock hints that resolve to \XF\Phrase but should be \XF\Entity\Phrase. There's also a few incorrect return types where Phrase is included when only string is returned.

Diff block for all the affected entities and docblocks:
Diff:

Code:
diff --git a/src/XF/Entity/AbstractPrompt.php b/src/XF/Entity/AbstractPrompt.php
--- a/src/XF/Entity/AbstractPrompt.php
+++ b/src/XF/Entity/AbstractPrompt.php...

Read more

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