Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/view-layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract class Options implements ParameterObject
*/
public function __construct($options = null)
{
if (is_null($options)) {
if ($options === null) {
return;
}
$this->processArray($options);
Expand Down Expand Up @@ -136,7 +136,7 @@ public function __get($key)
public function __isset($key)
{
$getter = $this->assembleGetterNameFromConfigKey($key);
return !is_null($this->{$getter}());
return ($this->{$getter}() !== null);
}

/**
Expand Down

0 comments on commit c7b940e

Please sign in to comment.