RSS Feed/News Incorrect docblock hint for \XF\Repository\UserAlertRepository::fastDeleteAlertsForContent

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
28,640
Points
823

Reputation:

The docblock hints int for $contentId where it should be int[]|int or array|int:
PHP:

Code:
    /**
     * @param string $contentType
     * @param int $contentId
     */
    public function fastDeleteAlertsForContent($contentType, $contentId)

As the finder method will produce a valid (and desired) query if $contentId is an array of integers.

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