Skip to content

Commit 59a76f4

Browse files
author
Antoine Aflalo
committed
fix(Reflection): Use the interface instead of object in signature
1 parent 4a46e0a commit 59a76f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Utils/Reflection/ReflectionUtil.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use Carbon\Carbon;
1212
use ZEROSPAM\Framework\SDK\Request\Api\WithNullableFields;
13-
use ZEROSPAM\Framework\SDK\Response\Api\BaseResponse;
13+
use ZEROSPAM\Framework\SDK\Response\Api\IResponse;
1414
use ZEROSPAM\Framework\SDK\Utils\Contracts\Arrayable;
1515
use ZEROSPAM\Framework\SDK\Utils\Contracts\PrimalValued;
1616
use ZEROSPAM\Framework\SDK\Utils\Str;
@@ -150,10 +150,10 @@ public static function getAllProperties($class, $blacklist = [])
150150
/**
151151
* Populate the response data into a dataObject that have the corresponding setters.
152152
*
153-
* @param BaseResponse $response
153+
* @param IResponse $response
154154
* @param $dataObject
155155
*/
156-
public static function populateResponseData(BaseResponse $response, &$dataObject): void
156+
public static function populateResponseData(IResponse $response, &$dataObject): void
157157
{
158158
foreach (array_keys($response->data()) as $key) {
159159
$method = 'set';

0 commit comments

Comments
 (0)