Skip to content

Commit d9de3ea

Browse files
authored
Merge pull request #76 from launchdarkly/arun/rules-guard
Ensure that FeatureFlag _rules is non-null
2 parents cfaece1 + aa9bd6b commit d9de3ea

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
@@ -60,7 +60,7 @@ public static function getDecoder() {
6060
array_map(Prerequisite::getDecoder(), $v['prerequisites'] ?: []),
6161
$v['salt'],
6262
array_map(Target::getDecoder(), $v['targets'] ?: []),
63-
array_map(Rule::getDecoder(), $v['rules']),
63+
array_map(Rule::getDecoder(), $v['rules'] ?: []),
6464
call_user_func(VariationOrRollout::getDecoder(), $v['fallthrough']),
6565
$v['offVariation'],
6666
$v['variations'],

0 commit comments

Comments
 (0)