1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/tests/fixtures/stubs/Doctrine.phpstub

31 lines
537 B
PHP
Raw Normal View History

2020-12-01 16:26:45 +01:00
<?php
namespace Doctrine\ORM;
class EntityManager implements EntityManagerInterface
{
/**
* @template T
* @param class-string<T> $entityName
* @param mixed $id
*
* @return null|T
*/
public function getReference($entityName, $id)
{
}
}
interface EntityManagerInterface
{
/**
* @param class-string<T> $entityName
* @param mixed $id
*
* @return T|null
*
* @template T
*/
public function getReference(string $entityName, $id);
}