1 | <?php |
||
20 | final class EmailAutolinkProcessor |
||
21 | { |
||
22 | const REGEX = '/([A-Za-z0-9.\-_+]+@[A-Za-z0-9\-_]+\.[A-Za-z0-9\-_.]+)/'; |
||
23 | |||
24 | private $coreProcessor; |
||
25 | |||
26 | public function __construct() |
||
31 | |||
32 | /** |
||
33 | * @param DocumentParsedEvent $e |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function __invoke(DocumentParsedEvent $e) |
||
41 | } |
||
42 |
If you suppress an error, we recommend checking for the error condition explicitly: