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 134facebook-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
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!