mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
silence PHP 8.2 deprecation notices
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Curl;
|
||||
use Curl\ArrayUtil;
|
||||
use Curl\Url;
|
||||
|
||||
#[\AllowDynamicProperties]
|
||||
class Curl
|
||||
{
|
||||
const VERSION = '9.12.5';
|
||||
|
||||
@@ -13,6 +13,8 @@ class Test
|
||||
|
||||
private $testUrl;
|
||||
|
||||
public $curl;
|
||||
|
||||
public function __construct($port = null)
|
||||
{
|
||||
$this->testUrl = $port === null ? self::TEST_URL : $this->getTestUrl($port);
|
||||
|
||||
@@ -16,6 +16,7 @@ if (interface_exists('JsonSerializable')) {
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user