class check email fix getEmailRegexCheck
This should only return the part email checks from position 1 to n, but it returned all of them. Fixed with slice call
This commit is contained in:
@@ -120,7 +120,13 @@ class Email
|
||||
*/
|
||||
public static function getEmailRegexCheck(): array
|
||||
{
|
||||
return self::$email_regex_check;
|
||||
// return all but the first
|
||||
return array_slice(
|
||||
self::$email_regex_check,
|
||||
1,
|
||||
count(self::$email_regex_check) - 1,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user