Skip to content

Commit 384b5d0

Browse files
authored
Update User.php
1 parent 90b2399 commit 384b5d0

File tree

1 file changed

+3
-6
lines changed
  • src/Structural/DependencyInjection

1 file changed

+3
-6
lines changed

src/Structural/DependencyInjection/User.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55
class User
66
{
7-
protected Storage $userStorage;
8-
9-
public function __construct(Storage $userStorage)
7+
public function __construct(private Storage $userStorage)
108
{
11-
$this->userStorage = $userStorage;
129
}
1310

14-
protected function validate($email, $password): bool
11+
protected function validate(string $email, string $password): bool
1512
{
16-
if (strlen($email) > 3 && strlen($password) > 3) {
13+
if (mb_strlen($email) > 3 && mb_strlen($password) > 3) {
1714
return true;
1815
} else {
1916
return false;

0 commit comments

Comments
 (0)