From 525cb1ceed98380c92ca8a2d550fdb4d63a1820e Mon Sep 17 00:00:00 2001 From: Julien Guittard Date: Mon, 4 Jan 2021 17:05:35 -0800 Subject: [PATCH] fetchConnection signature (#535) Summary: support PHP8 deprecation on optional arguments order Pull Request resolved: https://github.com/facebook/facebook-php-business-sdk/pull/535 Reviewed By: Mxiim Differential Revision: D25771380 Pulled By: jingping2015 fbshipit-source-id: 0800cb34 --- src/FacebookAds/Object/AbstractCrudObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FacebookAds/Object/AbstractCrudObject.php b/src/FacebookAds/Object/AbstractCrudObject.php index 7b79916cf..66b2a8212 100644 --- a/src/FacebookAds/Object/AbstractCrudObject.php +++ b/src/FacebookAds/Object/AbstractCrudObject.php @@ -388,7 +388,7 @@ protected function assureEndpoint($prototype_class, $endpoint) { protected function fetchConnection( array $fields = array(), array $params = array(), - $prototype_class, + $prototype_class = '', $endpoint = null) { $fields = implode(',', $fields ?: static::getDefaultReadFields()); if ($fields) {