We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4041b commit 54babb7Copy full SHA for 54babb7
1 file changed
src/File/Loader.php
@@ -236,11 +236,17 @@ protected function readRemoteFileWithCurl()
236
$errorMessage = 'curl_exec() failed.';
237
}
238
$errorCode = curl_errno($curl);
239
- curl_close($curl);
+ if (PHP_VERSION_ID < 80000) {
240
+ curl_close($curl);
241
+ }
242
+
243
throw new RuntimeException($errorMessage, $errorCode);
244
245
$responseInfo = curl_getinfo($curl);
246
247
248
249
250
if ($responseInfo['http_code'] == 404) {
251
throw new NotFoundException(sprintf('File %s does not exist.', $this->path));
252
0 commit comments