pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 265 forks source link

php 8.3 deprecation error #7225

Closed netlas closed 7 months ago

netlas commented 7 months ago

Description

PHP 8.3 has been released now and I get this deprecation error: Deprecated: Calling get_class() without arguments is deprecated in pods/classes/PodsForm.php on line 285 and 287.

So far that is the only deprecation error I have stumbled upon. And from the comments in the source code this is old depricated code in the pods plugin itself, also says it's suppose to be deleted for pods v3, which it obviouslty hasnt. Maybe time to trim of some old depricated code?

Version

3.0.8

Testing Instructions

Errors comes when editing a post in wordpress administration which has pods fields attached to it.

Screenshots / Screencast

No response

Possible Workaround

Replace get_class() on row 285 and 287 in PodsForm.php with static::class

Site Health Information

No response

Pods Package

No response

sc0ttkclark commented 7 months ago

Thanks for the heads up, if you see any other issues -- just let me know and I can get those sorted in the next release. Appreciate your help here!