From 26c67dba776e1e6f8ac40eed70fe79995325863d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Jul 2022 13:55:09 +0300 Subject: update phpstan to 1.8.2 --- vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/thecodingmachine/safe/lib/Exceptions') 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); } } -- cgit v1.2.3