Bug Method em()->create return hint incorrectly

There is a bug in this version
T

truonglv

Guest
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...