File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
src/Symfony/Component/Notifier Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public static function email(string $email): void
29
29
throw new InvalidArgumentException ('E-Mail must be set. ' );
30
30
}
31
31
32
- if (!\ preg_match (self ::PATTERN_HTML5 , $ email )) {
32
+ if (!preg_match (self ::PATTERN_HTML5 , $ email )) {
33
33
throw new InvalidArgumentException ('E-Mail is not valid. ' );
34
34
}
35
35
}
@@ -40,7 +40,7 @@ public static function phone(string $phone): void
40
40
throw new InvalidArgumentException ('Phone number must be set (no spaces, international code like in +3312345678). ' );
41
41
}
42
42
43
- if (!\ preg_match (self ::PATTERN_PHONE , $ phone )) {
43
+ if (!preg_match (self ::PATTERN_PHONE , $ phone )) {
44
44
throw new InvalidArgumentException ('Phone number is not valid (no spaces, international code like in +3312345678). ' );
45
45
}
46
46
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Notifier \Recipient ;
13
13
14
- use Symfony \Component \Notifier \Exception \InvalidArgumentException ;
15
-
16
14
/**
17
15
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
18
16
*
Original file line number Diff line number Diff line change 14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Notifier \Exception \InvalidArgumentException ;
16
16
use Symfony \Component \Notifier \Recipient \Recipient ;
17
- use Symfony \Component \Notifier \Recipient \SmsRecipient ;
18
17
19
18
/**
20
19
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
You can’t perform that action at this time.
0 commit comments