RSS Feed/News Incorrect docblocks from xf-dev:entity-class-properties

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,517
Points
823

Reputation:

Given the following column definition:
PHP:

'embed_metadata' => ['type' => self::JSON_ARRAY, 'nullable' => true, 'default' => null],
The resulting docblock entry is @property array|null|null $embed_metadata - there's an extra null there.

Given an entity that extends AbstractPrefix or AbstractPrefixGroup, the following docblocks are generated:
(AbstractPrefix)
Code:

Code:
 * @property-read string|Phrase $title
 * @property-read bool $has_usage_help
 *
 *...

Read more

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