Skip to content

Commit 60718c7

Browse files
committed
Fix array_column() on null in nightly_matrix.php
1 parent f7b58d3 commit 60718c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/nightly_matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function select_jobs($trigger, $labels, $php_version, $ref, $all_variations) {
155155
? get_branches()
156156
: [['ref' => $branch, 'version' => get_current_version()]];
157157

158-
$labels = json_decode($argv[4] ?? '[]', true);
158+
$labels = json_decode($argv[4] ?? '[]', true) ?? [];
159159
$labels = array_column($labels, 'name');
160160
$all_variations = $trigger === 'schedule' || $trigger === 'workflow_dispatch' || in_array('CI: All variations', $labels, true);
161161

0 commit comments

Comments
 (0)