Skip to content

Commit

Permalink
Fix construct method from Entity class
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Dobric committed Oct 29, 2019
1 parent b77eed2 commit 30acdc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Data/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class Entity implements \JsonSerializable
*/
public function __construct(array $data)
{
$values = array_values($data);
$this->data = isset($values[0]) && is_array($values[0]) ? $values[0] : $data;
$this->data = $data;
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Data/QueryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace ActiveCollab\Quickbooks\Data;

use ActiveCollab\Quickbooks\Data\Entity;

class QueryResponse implements \IteratorAggregate, \Countable, \JsonSerializable
{
/**
Expand Down

0 comments on commit 30acdc8

Please sign in to comment.