src/Sylius/Component/User/Model/User.php
public function serialize(): string
    {
        return serialize([
            $this->password,
            $this->salt,
            $this->usernameCanonical,
            $this->username,
            $this->locked,
            $this->enabled,
            $this->id,
            $this->encoderName,
        ]);
    }
public function serialize(): string
    {
        return serialize([
            $this->password,
            $this->salt,
            $this->usernameCanonical,
            $this->username,
            $this->locked,
            $this->enabled,
            $this->id,
            $this->encoderName,
        ]);
    }
public function serialize ( ) : string { return serialize ( [ $ this -> password , $ this -> salt , $ this -> usernameCanonical , $ this -> username , $ this -> locked , $ this -> enabled , $ this -> id , $ this -> encoderName , ] ) ; }
The serialized data have to contain the fields used by the equals method and the username.
The serialized data have to contain the fields used by the equals method and the username .