Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Commit

Permalink
UserName VO fix (strlen -> mb_strlen)
Browse files Browse the repository at this point in the history
  • Loading branch information
chonsser committed Jun 16, 2017
1 parent 93b0c63 commit 64a5509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/ValueObject/UserName.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private function guardUserName($user_name)
throw new InvalidUserNameException("Username has to be a string");
}

$name_length = strlen($user_name);
$name_length = mb_strlen($user_name);

if ($name_length > self::MAX_LENGTH) {
throw new InvalidUserNameException("Username must have less than " . self::MAX_LENGTH . " characters");
Expand Down

0 comments on commit 64a5509

Please sign in to comment.