Skip to content

Commit 237c3e2

Browse files
authored
Fix undefined variable $share (#118)
Introduced in !177
1 parent 4d211e4 commit 237c3e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JiraClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ public function curlPrepare(\CurlHandle|bool $ch, array $curl_http_headers, ?str
171171
]);
172172
} else {
173173
$this->curlShare = curl_share_init();
174-
curl_share_setopt($share, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);
175-
curl_share_setopt($share, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
174+
curl_share_setopt($this->curlShare, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);
175+
curl_share_setopt($this->curlShare, CURLSHOPT_SHARE, CURL_LOCK_DATA_CONNECT);
176176
}
177177
}
178178
curl_setopt($ch, CURLOPT_SHARE, $this->curlShare);

0 commit comments

Comments
 (0)