Added typehinting for plain password

This commit is contained in:
Kevin Frantz 2018-09-12 19:59:14 +02:00
parent dffea5d3b9
commit 59b1be8592

View File

@ -10,9 +10,10 @@ use Symfony\Component\Validator\Constraints as Assert;
trait PlainPasswordAttribute {
/**
*
*
* @Assert\NotBlank()
* @Assert\Length(max=4096)
* @var string
*/
private $plainPassword;
@ -21,7 +22,7 @@ trait PlainPasswordAttribute {
return $this->plainPassword;
}
public function setPlainPassword($password): void
public function setPlainPassword(string $password): void
{
$this->plainPassword = $password;
}