Hi, I am using psalm heavily and have reached a situation where I can have
public function doSth(EntityInterface|Proxy $entity): bool
{
//....
}
All my entities implement the EntityInterface, because I enforce that every entity has a getId() method.
Obviously, my psalm now cries
Method Doctrine\Common\Proxy\Proxy::getId does not exist
Is there some adviced way to make Proxies type-safe? Thank you
Hi, I am using psalm heavily and have reached a situation where I can have
All my entities implement the EntityInterface, because I enforce that every entity has a
getId()method.Obviously, my psalm now cries
Is there some adviced way to make Proxies type-safe? Thank you