Compare commits

..

No commits in common. "10ad77d607e34d8e9bcf68384a2193ca525ed9f4" and "267fe5cadd44b17bacc354fd4a4124becba2ebd7" have entirely different histories.

View File

@ -85,7 +85,7 @@ class User {
public function __toString() : string
{
return "{$this->firstName} {$this->lastName}";
return $this->fullname();
}
public function setPassword($password) : self
@ -95,9 +95,9 @@ class User {
return $this->hashPassword();
}
public function hashPassword(? string $password = null) : self
public function hashPassword() : self
{
$this->password = password_hash($password ?: $this->password, PASSWORD_DEFAULT);
$this->password = password_hash($this->password, PASSWORD_DEFAULT);
return $this;
}