mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 00:32:16 +02:00
Avoid using unset keys in IpException
The "IpException" was triggering an error when the parameters "networkRange" or "min" were not defined. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
fca464615e
commit
0e73bc732e
|
@ -29,6 +29,7 @@ class IpException extends ValidationException
|
|||
|
||||
public function configure($name, array $params = [])
|
||||
{
|
||||
$params += ['networkRange' => null, 'min' => null];
|
||||
if ($params['networkRange']) {
|
||||
$range = $params['networkRange'];
|
||||
$message = $range['min'];
|
||||
|
|
Loading…
Reference in a new issue