carbon-fields
carbon-fields copied to clipboard
Compatibility issue with php 8.3.1
Version
3.6.3 - Carbon Fields: 6.4.3 - WordPress: 8.3.1 - PHP:
Expected Behavior
No errors like "Calling get_class() without arguments is deprecated"
Actual Behavior
https://prnt.sc/5qPRcRUFP_py
Hello.
I have the same problem, I solved it by downgrading php to 8.1
Hello.
I have the same problem, I solved it by downgrading php to 8.1
carbon works with php 8.2, the get_class() needs to be replaced with static::class in 7 diff files. if you really want to use php 8.3
Why would we not really want to use php8.3 ? ;)
Anyway, I saw there is a PR for this here, wondering if @htmlburger-git will consider that (or an improved version thereof?)
Update
Created #1239 without the flaws of #1223
This was fixed in https://github.com/htmlburger/carbon-fields/pull/1239 and will be added to the next release.
The fix for this issue is now released in https://github.com/htmlburger/carbon-fields/releases/tag/v3.6.5