Plugin triggers some warning on PHP 8.3
-
When used with PHP 8.3 plugin triggers following warnings:
Warning: WP_REST_API_Log_API_Request_Response_Base::{closure}(): Argument #2 ($k) must be passed by reference, value given in /wp-content/plugins/wp-rest-api-log/includes/class-wp-rest-api-log-request-response-base.php on line 140Warning: WP_REST_API_Log_API_Request_Response_Base::{closure}(): Argument #2 ($k) must be passed by reference, value given in /wp-content/plugins/wp-rest-api-log/includes/class-wp-rest-api-log-request-response-base.php on line 125Deprecated: Creation of dynamic property WP_REST_API_Log_Entry::$source is deprecated in /wp-content/plugins/wp-rest-api-log/includes/class-wp-rest-api-log-entry.php on line 146I also started to see these notices in my log after activating the plugin (I am not 100% sure they are related to your plugin but most likely it is so as they are thrown at the same time as warnings and notices related to your plugin):
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-admin/admin-header.php on line 36Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2189Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7329
The topic ‘Plugin triggers some warning on PHP 8.3’ is closed to new replies.