Skip to content

Commit d9b0777

Browse files
committed
Fix "Cannot use bool as array" warning
1 parent a7627ba commit d9b0777

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.maintenance/src/GitHub.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,13 @@ public static function get_release_by_tag(
141141

142142
$args['per_page'] = 100;
143143

144-
list( $body, $headers ) = self::request( $request_url, $args );
144+
$result = self::request( $request_url, $args );
145+
146+
if ( ! $result ) {
147+
return false;
148+
}
149+
150+
list( $body, $headers ) = $result;
145151

146152
return $body;
147153
}

0 commit comments

Comments
 (0)