Method em()->create return hint incorrectly

Status
This content is read-only, or is not open for further replies.

truonglv

Guest
offline
PHP:

Code:
/**
 * @template T of Entity
 *
 * @param class-string<T> $shortName
 *
 * @return T|null
 */
public function create($shortName)
{
   return $this->instantiateEntity($shortName);
}

I though that method never return null in any case.

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom