Return AbstractUid as string
This commit is contained in:
parent
b5587b24b8
commit
1a9d76a869
@ -56,7 +56,7 @@ abstract class AbstractUidType extends GuidType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($value instanceof AbstractUid) {
|
if ($value instanceof AbstractUid) {
|
||||||
return $value;
|
return (string) $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!\is_string($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
|
if (!\is_string($value) && !(\is_object($value) && method_exists($value, '__toString'))) {
|
||||||
|
Reference in New Issue
Block a user