Fixed Incorrect docblock for \XF\Mvc\Entity\Manager::instantiateEntity

DragonByte Tech

Well-known member
Affected version
2.3.0b4
This docblock:
PHP:
    /**
     * Instantiates the named entity with the specified values and relations. This is a low level function and the
     * arguments must be structured correctly.
     *
     * This function should only be called with values and relations in specific cases. In most situations, this
     * function should not be used by XenForo application-level code.
     *
     * @param class-string<T> $shortName
     * @param array $values Values for the columns in the entity, in source encoded form
     * @param array $relations
     * @param int $options Bit field of the INSTANTIATE_* options
     *
     * @return T|null
     *
     * @throws \LogicException
     */
is missing
PHP:
* @template T of Entity
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 5).

Change log:
Fix generic hinting for EM instantiateEntity method
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom