Skip to content

Commit 0ff0280

Browse files
committed
fix: removing overlooked podio client parameters
1 parent 6074bb8 commit 0ff0280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/PodioObject.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public static function listing(PodioClient $podio_client, $response_or_attribute
195195
$list = array();
196196
foreach ($body as $attributes) {
197197
$class_name = get_called_class();
198-
$list[] = new $class_name($podio_client, array_merge($attributes, array('__api_values' => true)));
198+
$list[] = new $class_name(array_merge($attributes, array('__api_values' => true)));
199199
}
200200
return $list;
201201
}
@@ -205,7 +205,7 @@ public static function member(PodioClient $podio_client, $response)
205205
{
206206
if ($response) {
207207
$class_name = get_called_class();
208-
return new $class_name($podio_client, array_merge($response instanceof PodioResponse ? $response->json_body() : $response, array('__api_values' => true)));
208+
return new $class_name(array_merge($response instanceof PodioResponse ? $response->json_body() : $response, array('__api_values' => true)));
209209
}
210210
}
211211

@@ -217,10 +217,10 @@ public static function collection(PodioClient $podio_client, $response, $collect
217217
if (isset($body['items'])) {
218218
foreach ($body['items'] as $attributes) {
219219
$class_name = get_called_class();
220-
$list[] = new $class_name($podio_client, array_merge($attributes, array('__api_values' => true)));
220+
$list[] = new $class_name(array_merge($attributes, array('__api_values' => true)));
221221
}
222222
}
223-
return new $collection_type($podio_client, $list, $body['filtered'], $body['total']);
223+
return new $collection_type($list, $body['filtered'], $body['total']);
224224
}
225225
}
226226

0 commit comments

Comments
 (0)