Sfoglia il codice sorgente

fix toString method

Thomas Rabaix 14 anni fa
parent
commit
d9db239fcf
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Entity/BaseUser.php

+ 1 - 1
Entity/BaseUser.php

@@ -31,6 +31,6 @@ class BaseUser extends AbstractedUser
 
 
     public function __toString()
     public function __toString()
     {
     {
-        return $this->getUsername();
+        return $this->getUsername() ?: '-';
     }
     }
 }
 }