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

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/pods/includes/data.php on line 298 #7262

Open oldrup opened 4 months ago

oldrup commented 4 months ago

Description

Hey!

Testing Pods 3.1.1 on WP 6.4.3, running PHP 8.1.27 - so far, no issues, nice work 👏

But with WP_DEBUG enabled, I get the following deprecation warning: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/pods/includes/data.php on line 298

No biggie, sites work fine, just a heads-up. Let me know if I can provide any helpful information :)

Version

3.1.1

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

on request

Pods Package

on request
openmindculture commented 1 month ago

With pods plugin version 3.2.1.1, WordPress 6.5.3, PHP 8.2.19, I see the same deprecation warning in line 299 which does not seem to make much sense looking at the source code.

298 } 299 $output = call_user_func_array( $function, $args );