We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 479399e commit 1e096d8Copy full SHA for 1e096d8
1 file changed
src/Entity/EntityRedirect.php
@@ -33,12 +33,12 @@ class EntityRedirect {
33
public function __construct( EntityId $entityId, EntityId $targetId ) {
34
if ( $entityId->getEntityType() !== $targetId->getEntityType() ) {
35
throw new InvalidArgumentException(
36
- '$entityId and $targetId must refer to the same kind of entity.'
+ '$entityId (' . $entityId . ') and $targetId (' . $targetId . ') must refer to the same kind of entity.'
37
);
38
}
39
40
if ( $entityId->getSerialization() === $targetId->getSerialization() ) {
41
- throw new InvalidArgumentException( '$entityId and $targetId can not be the same.' );
+ throw new InvalidArgumentException( '$entityId (' . $entityId . ') and $targetId can not be the same.' );
42
43
44
$this->entityId = $entityId;
0 commit comments