diff --git a/src/Sylius/Component/Customer/Model/Customer.php b/src/Sylius/Component/Customer/Model/Customer.php index fb35aaf55e..4a5921b43e 100644 --- a/src/Sylius/Component/Customer/Model/Customer.php +++ b/src/Sylius/Component/Customer/Model/Customer.php @@ -93,10 +93,14 @@ class Customer implements CustomerInterface, \Stringable { $fullName = $this->getFullName(); - if ('' !== $fullName) { + if ('' !== $fullName && null !== $this->email) { return sprintf('%s (%s)', $fullName, $this->email); } + if ('' !== $fullName) { + return $fullName; + } + return (string) $this->email; }