silence PHP 8.2 deprecation notices

This commit is contained in:
Michael Bolli
2023-01-10 10:27:19 +01:00
parent fdbfd2545b
commit 95f4aac970
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ namespace Curl;
use Curl\ArrayUtil;
use Curl\Url;
#[\AllowDynamicProperties]
class Curl
{
const VERSION = '9.12.5';
+2
View File
@@ -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);
+1
View File
@@ -16,6 +16,7 @@ if (interface_exists('JsonSerializable')) {
$this->email = $email;
}
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return [