Skip to content

Commit 51b81c2

Browse files
Update BaywatchOperation to handle array_merge() on null. (#90)
1 parent be77fcc commit 51b81c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BaywatchOperation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function enable_config_split() {
106106
}
107107
}
108108
}
109+
$active_graylist = $active_graylist ?? [];
110+
$inactive_graylist = $inactive_graylist ?? [];
109111
$result = array_unique(array_merge($active_graylist, $inactive_graylist));
110112
$active_config->set('graylist', $result)->save();
111113
}

0 commit comments

Comments
 (0)