diff --git a/src/LaunchDarkly/LDUser.php b/src/LaunchDarkly/LDUser.php index a7181a226..7ddd50bc4 100644 --- a/src/LaunchDarkly/LDUser.php +++ b/src/LaunchDarkly/LDUser.php @@ -32,7 +32,7 @@ class LDUser { * @param boolean|null $anonymous Whether this is an anonymous user * @param array|null $custom Other custom attributes that can be used to create custom rules */ - public function __construct($key, $secondary = null, $ip = null, $country = null, $email = null, $name = null, $avatar = null, $firstName = null, $lastName= null, $anonymous = false, $custom = []) { + public function __construct($key, $secondary = null, $ip = null, $country = null, $email = null, $name = null, $avatar = null, $firstName = null, $lastName= null, $anonymous = null, $custom = []) { $this->_key = $key; $this->_secondary = $secondary; $this->_ip = $ip; diff --git a/src/LaunchDarkly/LDUserBuilder.php b/src/LaunchDarkly/LDUserBuilder.php index a5db8a151..70fefead8 100644 --- a/src/LaunchDarkly/LDUserBuilder.php +++ b/src/LaunchDarkly/LDUserBuilder.php @@ -11,7 +11,7 @@ class LDUserBuilder { protected $_avatar = null; protected $_firstName = null; protected $_lastName = null; - protected $_anonymous = false; + protected $_anonymous = null; protected $_custom = []; public function __construct($key) {