PHP 8.1: Passing null
to non-nullable parameters of built-in functions
#1008
Labels
null
to non-nullable parameters of built-in functions
#1008
Description of Problem
PHP deprecation message:
In the WP.org support post you mentioned this seemed like a configuration problem, because
null
shouldn't be what gets passed around there. But you do have code explicitly setting this var tonull
in some scenarios. I've added some comments to the below source code identifying such instances:Maybe that could either default to something valid for the call to
trim
or short-circuit or...idk. Something else.Details
The text was updated successfully, but these errors were encountered: