We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc81f8e commit 392cefcCopy full SHA for 392cefc
src/LaunchDarkly/LDClient.php
@@ -223,7 +223,7 @@ public function identify($user) {
223
* @return array()|null Mapping of feature flag keys to their evaluated results for $user
224
*/
225
public function allFlags($user) {
226
- if (is_null($user) || strlen($user->getKey()) === 0) {
+ if (is_null($user) || is_null($user->getKey())) {
227
$this->_logger->warn("allFlags called with null user or null/empty user key! Returning null");
228
return null;
229
}
0 commit comments