We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b2399 commit 384b5d0Copy full SHA for 384b5d0
src/Structural/DependencyInjection/User.php
@@ -4,16 +4,13 @@
4
5
class User
6
{
7
- protected Storage $userStorage;
8
-
9
- public function __construct(Storage $userStorage)
+ public function __construct(private Storage $userStorage)
10
11
- $this->userStorage = $userStorage;
12
}
13
14
- protected function validate($email, $password): bool
+ protected function validate(string $email, string $password): bool
15
16
- if (strlen($email) > 3 && strlen($password) > 3) {
+ if (mb_strlen($email) > 3 && mb_strlen($password) > 3) {
17
return true;
18
} else {
19
return false;
0 commit comments