Skip to content

Commit

Permalink
Avoid using unset keys in IpException
Browse files Browse the repository at this point in the history
The "IpException" was triggering an error when the parameters
"networkRange" or "min" were not defined.

Signed-off-by: Henrique Moody <[email protected]>
  • Loading branch information
henriquemoody committed Jun 23, 2018
1 parent fca4646 commit 0e73bc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Exceptions/IpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 0e73bc7

Please sign in to comment.