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:
Henrique Moody 2018-06-23 21:00:04 +02:00
parent fca464615e
commit 0e73bc732e
No known key found for this signature in database
GPG key ID: 221E9281655813A6

View file

@ -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'];