summaryrefslogtreecommitdiff
path: root/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-31 13:55:09 +0300
committerAndrew Dolgov <[email protected]>2022-07-31 13:55:09 +0300
commit26c67dba776e1e6f8ac40eed70fe79995325863d (patch)
tree862b043fa666e44ed0b2c997a98b1a256b26ee12 /vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
parentd5c043e8467881c00b2cd836f2f37b8479cf0b96 (diff)
update phpstan to 1.8.2
Diffstat (limited to 'vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php')
-rw-r--r--vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php b/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
index d0dbdb695..3401b57b8 100644
--- a/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
+++ b/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
@@ -8,8 +8,8 @@ class CurlException extends \Exception implements SafeExceptionInterface
/**
* @param \CurlHandle $ch
*/
- public static function createFromPhpError($ch): self
+ public static function createFromPhpError($ch = null): self
{
- return new self(\curl_error($ch), \curl_errno($ch));
+ return new self($ch ? \curl_error($ch) : '', $ch ? \curl_errno($ch) : 0);
}
}