Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dgame committed Apr 25, 2017
1 parent 5e22b56 commit 480565c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ObjectFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ final public function setValue(string $name, $value): bool
}
}

return $this->invokeMethod('__set', $name, $value);
if ($this->hasMethod('__set')) {
$this->invokeMethod('__set', $name, $value);

return true;
}

return false;
}

/**
Expand Down

0 comments on commit 480565c

Please sign in to comment.