diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 2fdbced..3a80b8b 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -20,7 +20,7 @@ checks: build: environment: - php: 7.2.0 + php: 7.3.0 nodes: analysis: tests: diff --git a/src/Entities/InstagramAccounts.php b/src/Entities/InstagramAccounts.php index 6fd189c..27a3c3d 100644 --- a/src/Entities/InstagramAccounts.php +++ b/src/Entities/InstagramAccounts.php @@ -2,7 +2,7 @@ namespace Edbizarro\LaravelFacebookAds\Entities; -use FacebookAds\Object\AdAccount; +use FacebookAds\Object\AdAccount as FbAdAccount; use Illuminate\Support\Collection; use Edbizarro\LaravelFacebookAds\Traits\AdAccountFormatter; @@ -27,7 +27,7 @@ class InstagramAccounts public function all(array $fields = [], $accountId = 'me'): Collection { return $this->format( - (new AdAccount($accountId))->getInstagramAccounts($fields) + (new FbAdAccount($accountId))->getInstagramAccounts($fields) ); } @@ -43,7 +43,7 @@ public function all(array $fields = [], $accountId = 'me'): Collection public function get(array $fields, $accountId) { return $this->format( - (new AdAccount($accountId))->read($fields) + (new FbAdAccount($accountId))->read($fields) ); } }