PHP deprecation warning when auto-updating core WordPress version
-
The following warnings are being triggered in the
feedback()function in/wp-admin/includes/class-automatic-upgrader-skin.phpwhen the core WordPress version auto-updates using this plugin:str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecatedtrim(): Passing null to parameter #1 ($string) of type string is deprecatedThe PHP version being used is 8.2. It looks like the issue is caused by a
NULLargument being passed into thefeedback()function during the update process, whereas it is expecting astring,array, orWP_Error. Is there anything that can be done about this on the plugin side to avoid aNULLargument being passed, or do I need to raise this with the WordPress core team to allow aNULLargument to be passed and to handle it appropriately?
You must be logged in to reply to this topic.