Skip to content

Commit

Permalink
#[\ReturnTypeWillChange]
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Nov 10, 2022
1 parent 10cfae4 commit a57eb60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ApiRequestDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ public function requiresAuth()
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return [
Expand All @@ -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');
Expand Down

0 comments on commit a57eb60

Please sign in to comment.