From: Michael Wallner Date: Wed, 10 Nov 2021 09:12:57 +0000 (+0100) Subject: PHP-8.2 compat with __toString X-Git-Tag: v2.2.1~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=64cc2702825f663e8da413dab235d18145f073b7;p=m6w6%2Fext-pq PHP-8.2 compat with __toString --- diff --git a/src/php_pq_misc.c b/src/php_pq_misc.c index 70f32da..9acef34 100644 --- a/src/php_pq_misc.c +++ b/src/php_pq_misc.c @@ -138,7 +138,11 @@ ZEND_END_ARG_INFO() #define ai_pqdt_jsonserialize ai_pqdt_to_string #endif +#if PHP_VERSION_ID >= 80200 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(ai_pqdt_to_string, 0, 0, IS_STRING, 0) +#else ZEND_BEGIN_ARG_INFO_EX(ai_pqdt_to_string, 0, 0, 0) +#endif ZEND_END_ARG_INFO(); static PHP_METHOD(pqdt, __toString) {