Comments (4)
It appears to me that you're on an older version of php than 8.0. It looks like the syntax is fine, but is using union types which was introduced in php 8.0. Is that the case here?
from facebook-php-business-sdk.
Ah, that could be it. It's running in a php 7.4 env indeed, because of other packages that are not compatible with php >= 8 yet. Would it be difficult to make it still compatible with 7.4?
from facebook-php-business-sdk.
I do know a bunch of work has gone into making this package compatible with php 8.0/8.1, and removing return types I'm guessing isn't likely to happen, especially with 7.4 being EOL last year.
If you do need to maintain 7.4 support, I'd suggest either forking the repo, remove the return types that are causing issues and using that, or instead of a repo apply patches using something like https://github.com/cweagans/composer-patches
from facebook-php-business-sdk.
Makes sense. Thank you for your efforts. 🙏
from facebook-php-business-sdk.
Related Issues (20)
- field 'id' is required in getBusinesses method HOT 2
- CampaignFields::SPEND_CAP return null for all campaigns, help-me!! HOT 2
- use too many memory HOT 1
- Campaign Budget - Error Undefined class constant 'DAILY_BUDGET' HOT 1
- Hi, it seems like this issue has been open for more than a few months now. We have made many changes in the SDK since then, including releasing a new version. If you can repro your specific issue with the latest version of the SDK, please create a new issue or comment here with further details.
- Can't create a saved Audience using graph API progrmitically HOT 1
- Messenger Ads How To Add Personalization Fields HOT 2
- Deprecations with `strlen` on null. HOT 4
- getDefaultRequestHeaders() is misspelled as getDefaultRequestHeaderds() HOT 1
- PHP 8.1 Deprecation HOT 4
- Union types are only allowed since php8 HOT 2
- Exception: field 'id' is required Error HOT 2
- شخص ما أخترق حسابي الشخصي
- Normalizer.php strlen() must be of type string Problem
- Facebook Multi-Language Ads
- Syntax error in FB version v16.0.0 HOT 1
- The AdAccountFields enum does not currently implement the ACCOUNT_STATUS field. HOT 1
- Exception thrown without a stack frame in Unknown on line 0 HOT 1
- How to create a AAA advertisements above version 17
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 facebook-php-business-sdk.