Skip to content

Commit cfaece1

Browse files
authored
Merge pull request #75 from idirouhab/master
Set target field to empty array whenever is null
2 parents 99297ba + 30e40be commit cfaece1

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

0 commit comments

Comments
 (0)