@@ -83,7 +83,7 @@ |
||
| 83 | 83 | * |
| 84 | 84 | * @param string $name |
| 85 | 85 | * |
| 86 | - * @return mixed|null The value or null if the field does not exist |
|
| 86 | + * @return string The value or null if the field does not exist |
|
| 87 | 87 | */ |
| 88 | 88 | public function popField($name) |
| 89 | 89 | { |
@@ -892,8 +892,7 @@ discard block |
||
| 892 | 892 | public static function getName($errorCode) |
| 893 | 893 | { |
| 894 | 894 | return array_key_exists($errorCode, static::$errors) ? |
| 895 | - static::$errors[$errorCode][0] : |
|
| 896 | - null; |
|
| 895 | + static::$errors[$errorCode][0] : null; |
|
| 897 | 896 | } |
| 898 | 897 | |
| 899 | 898 | /** |
@@ -904,7 +903,6 @@ discard block |
||
| 904 | 903 | public static function getDescription($errorCode) |
| 905 | 904 | { |
| 906 | 905 | return array_key_exists($errorCode, static::$errors) ? |
| 907 | - static::$errors[$errorCode][1] : |
|
| 908 | - null; |
|
| 906 | + static::$errors[$errorCode][1] : null; |
|
| 909 | 907 | } |
| 910 | 908 | } |