Skip to content

Commit

Permalink
Use property_exists() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed May 31, 2015
1 parent 4ca3835 commit 8635266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mailer/Mailer.php
Expand Up @@ -191,7 +191,7 @@ public function reset()
*/
public function offsetExists($offset)
{
return in_array($offset, get_object_vars($this)) ||
return property_exists($this, $offset) ||
method_exists($this->_email, $offset);
}

Expand Down

0 comments on commit 8635266

Please sign in to comment.