@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | } |
219 | 219 | |
220 | 220 | /** |
221 | - * @param $exceptionClass |
|
221 | + * @param string $exceptionClass |
|
222 | 222 | * @return Assert |
223 | 223 | */ |
224 | 224 | public function setExceptionClass($exceptionClass) |
@@ -1220,7 +1220,7 @@ discard block |
||
1220 | 1220 | * |
1221 | 1221 | * @throws AssertionFailedException |
1222 | 1222 | * |
1223 | - * @param array $choices |
|
1223 | + * @param integer[] $choices |
|
1224 | 1224 | * @param string|null $message |
1225 | 1225 | * @param string|null $propertyPath |
1226 | 1226 | * @return $this |
@@ -2352,7 +2352,7 @@ discard block |
||
2352 | 2352 | } |
2353 | 2353 | |
2354 | 2354 | /** |
2355 | - * @param $func |
|
2355 | + * @param string $func |
|
2356 | 2356 | * @param $args |
2357 | 2357 | * @return bool |
2358 | 2358 | * @throws AssertionFailedException |
@@ -1972,8 +1972,7 @@ discard block |
||
1972 | 1972 | $this->stringify($this->value) |
1973 | 1973 | ); |
1974 | 1974 | throw $this->createException($message, $this->overrideCode ?: self::INVALID_EMAIL, $propertyPath); |
1975 | - } |
|
1976 | - else |
|
1975 | + } else |
|
1977 | 1976 | { |
1978 | 1977 | $host = substr($this->value, strpos($this->value, '@') + 1); |
1979 | 1978 | // Likely not a FQDN, bug in PHP FILTER_VALIDATE_EMAIL prior to PHP 5.3.3 |
@@ -2099,8 +2098,7 @@ discard block |
||
2099 | 2098 | try |
2100 | 2099 | { |
2101 | 2100 | $this->regex('(^([a-zA-Z]{1}[a-zA-Z0-9]*)$)', $message, $propertyPath); |
2102 | - } |
|
2103 | - catch (AssertionFailedException $e) |
|
2101 | + } catch (AssertionFailedException $e) |
|
2104 | 2102 | { |
2105 | 2103 | $message = $message ?: $this->overrideError; |
2106 | 2104 | $message = sprintf( |