Skip to content

Commit 5b01871

Browse files
committed
Merge pull request #10 from launchdarkly/jko/anonymous-null
Default anonymous to null, not false
2 parents 9fbd54c + c04b682 commit 5b01871

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LaunchDarkly/LDUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LDUser {
3232
* @param boolean|null $anonymous Whether this is an anonymous user
3333
* @param array|null $custom Other custom attributes that can be used to create custom rules
3434
*/
35-
public function __construct($key, $secondary = null, $ip = null, $country = null, $email = null, $name = null, $avatar = null, $firstName = null, $lastName= null, $anonymous = false, $custom = []) {
35+
public function __construct($key, $secondary = null, $ip = null, $country = null, $email = null, $name = null, $avatar = null, $firstName = null, $lastName= null, $anonymous = null, $custom = []) {
3636
$this->_key = $key;
3737
$this->_secondary = $secondary;
3838
$this->_ip = $ip;

src/LaunchDarkly/LDUserBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LDUserBuilder {
1111
protected $_avatar = null;
1212
protected $_firstName = null;
1313
protected $_lastName = null;
14-
protected $_anonymous = false;
14+
protected $_anonymous = null;
1515
protected $_custom = [];
1616

1717
public function __construct($key) {

0 commit comments

Comments
 (0)