diff --git a/src/ApiRequestDetail.php b/src/ApiRequestDetail.php index 674b492..cb3f95e 100644 --- a/src/ApiRequestDetail.php +++ b/src/ApiRequestDetail.php @@ -255,6 +255,7 @@ public function requiresAuth() /** * @inheritDoc */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return [ @@ -273,7 +274,7 @@ public function jsonSerialize() public static function fromJson($json) { $obj = is_scalar($json) ? json_decode($json) : $json; - $requestDetail = new static; + $requestDetail = new static(); $requestDetail->_url = Objects::property($obj, 'url'); $requestDetail->_headers = Objects::property($obj, 'headers'); $requestDetail->_options = Objects::property($obj, 'options');