Return AbstractUid as string

This commit is contained in:
Manuel Alejandro Paz Cetina 2020-09-21 00:26:47 -05:00 committed by GitHub
parent b5587b24b8
commit 1a9d76a869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ abstract class AbstractUidType extends GuidType
}
if ($value instanceof AbstractUid) {
return $value;
return (string) $value;
}
if (!\is_string($value) && !(\is_object($value) && method_exists($value, '__toString'))) {