Skip to content

Commit 5d661c2

Browse files
author
Dan Richelson
committed
Update to 2.0.3
1 parent aedecb3 commit 5d661c2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the LaunchDarkly Java SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.0.3] - 2017-01-05
6+
### Changed
7+
- Fixed botched 2.0.2 release: Better handling of null vs false when evaluating.
8+
59
## [2.0.2] - 2017-01-04
610
### Changed
711
- Better handling of null vs false when evaluating.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.2
1+
2.0.3

src/LaunchDarkly/FeatureFlag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function evaluate($user, $featureRequester) {
8888
}
8989
if ($this->isOn()) {
9090
$result = $this->_evaluate($user, $featureRequester, $prereqEvents);
91-
if ($result != null) {
91+
if ($result !== null) {
9292
return new EvalResult($result, $prereqEvents);
9393
}
9494
}

src/LaunchDarkly/LDClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class LDClient {
1212
const DEFAULT_BASE_URI = 'https://app.launchdarkly.com';
13-
const VERSION = '2.0.2';
13+
const VERSION = '2.0.3';
1414

1515
/** @var string */
1616
protected $_sdkKey;
@@ -131,7 +131,7 @@ public function variation($key, $user, $default = false) {
131131
$this->_eventProcessor->enqueue($e);
132132
}
133133
}
134-
if ($evalResult->getValue() != null) {
134+
if ($evalResult->getValue() !== null) {
135135
$this->_sendFlagRequestEvent($key, $user, $evalResult->getValue(), $default, $flag->getVersion());
136136
return $evalResult->getValue();
137137
}

0 commit comments

Comments
 (0)