facebook / facebook-php-business-sdk

PHP SDK for Meta Marketing API
https://developers.facebook.com/docs/business-sdk
Other
833 stars 516 forks source link

PHP 7.2 - Resolve parse errors. #548

Closed plamen-dimitrov06 closed 2 years ago

plamen-dimitrov06 commented 2 years ago

I noticed a failed lint check against one of the example files. The project I work on uses PHP7.4 but after checking the requirements I noticed that the minimum version is 7.2, so I ran the linter against that version. These are the two distinct parse errors reported, which I fix with these propesed changes : facebook-php-business-sdk\examples\aggregator_onboarding> C:\php7.2\php -l .\api.php PHP Parse error: syntax error, unexpected ')' in .\api.php on line 134 facebook-php-business-sdk\examples\aggregator_onboarding> C:\php7.2\php -l .\api.php PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in .\api.php on line 254

Any feedback is welcome and greatly appreciated!