Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library not work in php 7.4 #93

Closed
MaxChew opened this issue Sep 28, 2021 · 1 comment
Closed

This library not work in php 7.4 #93

MaxChew opened this issue Sep 28, 2021 · 1 comment

Comments

@MaxChew
Copy link

MaxChew commented Sep 28, 2021

Getting a issue on
ParseError
syntax error, unexpected '$url' (T_VARIABLE), expecting ')'

::Composer\Autoload\includeFile
vendor/spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php:28

Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}"));

My version is PHP 7.4.24 (cli) (built: Sep 26 2021 20:47:23) ( NTS )
Laravel Version is v8.61.0

phpinfo()
PHP Version => 7.4.24

Composer.lock
"name": "spatie/laravel-webhook-client",
"version": "2.7.5",

@freekmurze
Copy link
Member

This package requires PHP 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants