Skip to content

Commit

Permalink
Update lib/Doctrine/ORM/Exception/InstanceOfTheWrongTypeEncountered.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander M. Turek <[email protected]>
  • Loading branch information
simPod and derrabus authored Dec 28, 2021
1 parent 05d1161 commit 13cc39b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class InstanceOfTheWrongTypeEncountered extends LogicException implements
/** @param object $instance */
public static function forInstance($instance): self
{
return new self('Instance of the wrong type (' . get_class($instance) . ') was retrieved in inheritance hierachy.' .
return new self('Instance of the wrong type (' . get_debug_type($instance) . ') was retrieved in inheritance hierachy.' .
'This happens because identity map aggregates instances by rootEntityName ');
}
}

0 comments on commit 13cc39b

Please sign in to comment.