mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-11-02 04:52:30 +01:00
Removed some '__toString()' methods
This commit is contained in:
@ -30,15 +30,6 @@ class PayloadUser implements \JsonSerializable {
|
||||
$this->username = $username;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of this object.
|
||||
* @return string The string representation of this object.
|
||||
*/
|
||||
function __toString(): string {
|
||||
$json = json_encode($this, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
return static::class." $json";
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new user from the specified JSON map.
|
||||
* @param object $map A JSON map representing a user.
|
||||
|
||||
Reference in New Issue
Block a user