Skip to content

Commit 455959d

Browse files
authored
Merge pull request #77 from idirouhab/master
Ensure that FeatureFlag _variations is non-null
2 parents f348c10 + 054304c commit 455959d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaunchDarkly/FeatureFlag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function getDecoder() {
6363
array_map(Rule::getDecoder(), $v['rules'] ?: []),
6464
call_user_func(VariationOrRollout::getDecoder(), $v['fallthrough']),
6565
$v['offVariation'],
66-
$v['variations'],
66+
$v['variations'] ?: [],
6767
$v['deleted']);
6868
};
6969
}

0 commit comments

Comments
 (0)