spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
1k stars 147 forks source link

syntax error, unexpected '$url' (T_VARIABLE), expecting ')' #96

Closed meigieong closed 3 years ago

meigieong commented 3 years ago

Hi i encountered this issue when i tried to use the webhook client, i've been googling for some time and i saw the answer was just to make sure we are using PHP 7.4, and i'm using PHP 7.4.

it happens on the file vendor/spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php first is on the line 34 with $url, second is on the line 38, $config. I am using PHP 7.4.21 but still unable to get this through unless i change the fn to normal function . kindly advice.

image