Skip to content

Commit

Permalink
Fix deprecation error on read() calls (#47)
Browse files Browse the repository at this point in the history
* Update AdAccounts.php

Fix deprecation error

* Update InstagramAccounts.php

Fix deprecation error
  • Loading branch information
andrei930 authored and edbizarro committed Jun 4, 2019
1 parent 4bf2cff commit ee44c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Entities/AdAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function all(array $fields = [], $accountId = 'me'): Collection
public function get(array $fields, $accountId)
{
return $this->format(
(new AdAccount($accountId))->read($fields)
(new AdAccount($accountId))->getSelf($fields)
);
}
}
2 changes: 1 addition & 1 deletion src/Entities/InstagramAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function all(array $fields, string $accountId): Collection
public function get(array $fields, $accountId)
{
return $this->format(
(new FbAdAccount($accountId))->read($fields)
(new FbAdAccount($accountId))->getSelf($fields)
);
}
}

0 comments on commit ee44c0f

Please sign in to comment.