Skip to content

Commit

Permalink
Class must be a string, not null
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbrookes committed Jul 15, 2019
1 parent 21cf0d9 commit 22a3744
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ public function searchRecords($module, $criteria)
{
$response = $this->call($module, 'searchRecords', array('criteria' => $criteria, 'newFormat' => 2));

return $this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
return $this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
}

public function insertRecords($module, $data)
{
$response = $this->call($module, 'insertRecords', array('newFormat' => 1, 'version' => 4), $data);

return $this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors));
return $this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors));
}

public function updateRecords($module, $data)
{
$response = $this->call($module, 'updateRecords', array('newFormat' => 1, 'version' => 4), $data);

return $this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors));
return $this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors));
}

public function getFields($module)
Expand All @@ -85,7 +85,7 @@ public function deleteRecords($module, $id)
{
$response = $this->call($module, 'deleteRecords', array('id' => $id));

$this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors));
$this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors));
}

public function getLastErrors()
Expand All @@ -97,7 +97,7 @@ public function getRecordById($module, $ids)
{
$response = $this->call($module, 'getRecordById', array('newFormat' => 2, 'version' => 2, 'idlist' => implode(';', $ids)));

return $this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
return $this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
}

public function getRecords($module, $page = 1)
Expand All @@ -112,6 +112,6 @@ public function getRecords($module, $page = 1)
'newFormat' => 2,
));

return $this->serializer->deserialize($response, null, 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
return $this->serializer->deserialize($response, '', 'zoho', array('errors' => &$this->lastErrors, 'module' => $module));
}
}

0 comments on commit 22a3744

Please sign in to comment.