From 59b1be8592ff52fd94e9d103271d9743320e5843 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 12 Sep 2018 19:59:14 +0200 Subject: [PATCH] Added typehinting for plain password --- application/src/Entity/Attribut/PlainPasswordAttribute.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/src/Entity/Attribut/PlainPasswordAttribute.php b/application/src/Entity/Attribut/PlainPasswordAttribute.php index ae2b57d..6438844 100644 --- a/application/src/Entity/Attribut/PlainPasswordAttribute.php +++ b/application/src/Entity/Attribut/PlainPasswordAttribute.php @@ -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; }