Skip to content

Commit c0129c5

Browse files
committed
addStarでレスポンスなしでエラーになるので対応
1 parent 61575ac commit c0129c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/BacklogAPIClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function call_api( $method, $path, $query = null, $params=null) {
161161
}
162162
//
163163
$res = $this->send_request($method, $path,$options );
164-
if( str_contains($res->getHeader("Content-Type")[0], 'json') ) {
164+
if( str_contains($res->getHeader("Content-Type")[0] ?? '', 'json') ) {
165165
return json_decode($res->getBody()->getContents());
166166
}
167167

0 commit comments

Comments
 (0)