We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46109b8 commit afa6848Copy full SHA for afa6848
1 file changed
src/WP_CLI/CommandWithUpgrade.php
@@ -1294,6 +1294,10 @@ protected function get_raw_url_from_gist( $gist_id ) {
1294
);
1295
}
1296
1297
+ /**
1298
+ * @var null|object{files: array<string, object{raw_url: string}>} $decoded_body
1299
+ */
1300
+
1301
if ( null === $decoded_body || ! is_object( $decoded_body ) || ! isset( $decoded_body->files ) ) {
1302
return new \WP_Error(
1303
'invalid_gist_api_response',
0 commit comments