From 80d3db1dcf8fe9ca66d4e3f2e2116d3bc39ae2b4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 12 Jul 2022 22:26:21 +0300 Subject: upgrade idiorm to php8.1-patched version (aaronpk/idiorm) --- vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php | 4 ++-- vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php | 2 +- .../safe/lib/Exceptions/SimplexmlException.php | 11 +++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php (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 2814066b0..d0dbdb695 100644 --- a/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php +++ b/vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php @@ -6,9 +6,9 @@ namespace Safe\Exceptions; class CurlException extends \Exception implements SafeExceptionInterface { /** - * @param resource $ch + * @param \CurlHandle $ch */ - public static function createFromCurlResource($ch): self + public static function createFromPhpError($ch): self { return new self(\curl_error($ch), \curl_errno($ch)); } diff --git a/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php b/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php index 4300d29e9..d7d5a010d 100644 --- a/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php +++ b/vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php @@ -3,7 +3,7 @@ namespace Safe\Exceptions; -class JsonException extends \Exception implements SafeExceptionInterface +class JsonException extends \JsonException implements SafeExceptionInterface { public static function createFromPhpError(): self { diff --git a/vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php b/vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php new file mode 100644 index 000000000..477a9151c --- /dev/null +++ b/vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php @@ -0,0 +1,11 @@ +