Comments (14)
@DLO33 @Globulard I had this issue, too, but when I doublechecked I didn't really have PHP 7.4, check in the context tab by the stack trace, just in case you have multiple php versions
from laravel-webhook-client.
Make sure to have PHP 7.4 installed.
from laravel-webhook-client.
I am also encountering this error. I have php 7.4.2 installed.
PHP 7.4.2 (cli) (built: Feb 5 2020 16:50:38) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.2, Copyright (c), by Zend Technologies
from laravel-webhook-client.
Same issue here using PHP 7.4.1. I don't get why @freekmurze closed it this fast.
from laravel-webhook-client.
same issue with 7.4.4.
from laravel-webhook-client.
If anyone is using Docker, you will need to maker sure that the PHP version in your container is also set to PHP 7.4. The error syntax error you are receiving is actually coming from the container's PHP version and not your local PHP version.
If using laradock, this is pretty easy to resolve.
First edit your laradock .env
file on line 42 and set the PHP_VERSION
value to 7.4
Then run docker-compose build php-fpm
, followed by docker-compose build workspace
Once that's done, run docker-compose down
and then bring your containers up as you normally would.
I hope this helps!
from laravel-webhook-client.
@DLO33 @Globulard I had this issue, too, but when I doublechecked I didn't really have PHP 7.4, check in the context tab by the stack trace, just in case you have multiple php versions
@mvrska appreciate the reply, finally got around to having a look at this and you were correct. Context was showing an older version of php. Updated Ngix and everything seems to be good now :)
from laravel-webhook-client.
Good evening all. Plsss I encounter de same problem but is not telling me to be expecting any ')' is just like that. Just check it out here please and help me
from laravel-webhook-client.
Good evening all. Plsss I encounter de same problem but is not telling me to be expecting any ')' is just like that. Just check it out here please and help me
is this even laravel?
from laravel-webhook-client.
Good evening all. Plsss I encounter de same problem but is not telling me to be expecting any ')' is just like that. Just check it out here please and help me
is this even laravel?
well I don't really know I got my code from the company by name bulksmsnigeria.com.
And I integrated it using just php.
from laravel-webhook-client.
And this error is showing.
from laravel-webhook-client.
from laravel-webhook-client.
This is the code
from laravel-webhook-client.
Make sure to have PHP 7.4 installed.
the issue for me was that I had changed the php version but I had not restarted apache. Thank you for the hint!
from laravel-webhook-client.
Related Issues (20)
- There are no commands defined in the "vendor" namespace. HOT 1
- is it possible to save only specfic fields of payload?
- vendor publish command is not working in Laravel 7 HOT 1
- syntax error vendor/spatie/laravel-webhook-client/src/WebhookClientServiceProvider.php:28
- Class "Spatie\WebhookClient\Jobs\ProcessWebhookJob" not found HOT 3
- Log rotation
- Couldn't install
- WebhookCall is losing information
- Attribute [webhook] does not exist.
- "Not a valid process webhook job class"
- Attribute [webhooks] does not exist. HOT 5
- Static analysis fails when custom Model is used
- QueryException HOT 2
- Migration published missing "down" function, causing migrate issues HOT 3
- Change error http response code HOT 1
- Webhook Model can't be overridden HOT 3
- Using the package without config, like use with spatie/laravel-stripe-webhooks
- Attribute [webhooks] does not exist.
- Route caching fails when multiple routes use same configuration
- Another route has already been assigned name error when trying to create multiple endpoints for the same app HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-webhook-client.