Commit 28a880b5 authored by Taylor Otwell's avatar Taylor Otwell

Use array_key_exists in validator.

parent 23bdbd08
...@@ -317,7 +317,7 @@ class Validator { ...@@ -317,7 +317,7 @@ class Validator {
{ {
$other = $parameters[0]; $other = $parameters[0];
return isset($this->attributes[$other]) and $value == $this->attributes[$other]; return array_key_exists($other, $this->attributes) and $value == $this->attributes[$other];
} }
/** /**
...@@ -332,7 +332,7 @@ class Validator { ...@@ -332,7 +332,7 @@ class Validator {
{ {
$other = $parameters[0]; $other = $parameters[0];
return isset($this->attributes[$other]) and $value != $this->attributes[$other]; return array_key_exists($other, $this->attributes) and $value != $this->attributes[$other];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment