@@ -78,6 +78,9 @@ discard block |
||
78 | 78 | return $result; |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param \Egulias\EmailValidator\Exception\InvalidEmail|null $possibleError |
|
83 | + */ |
|
81 | 84 | private function addNewError($possibleError, array $errors) { |
82 | 85 | if (null !== $possibleError) { |
83 | 86 | $errors[] = $possibleError; |
@@ -86,6 +89,9 @@ discard block |
||
86 | 89 | return $errors; |
87 | 90 | } |
88 | 91 | |
92 | + /** |
|
93 | + * @param boolean $result |
|
94 | + */ |
|
89 | 95 | private function shouldStop($result) |
90 | 96 | { |
91 | 97 | return !$result && $this->mode === self::STOP_ON_ERROR; |