Skip to content

Conversation

@AnaisPantheor
Copy link
Contributor

PHP 8.4.8 Fixes suggested by ClaudeCode

Added proper property declarations in /wp-content/plugins/wp-redis/object-cache.php at line 442-461:
The WP_Object_Cache class was using three properties without declaring them:
$redis - The Redis client instance
$missing_redis_message - Error message string
$global_prefix - Global cache key prefix

The change from $port = -1; to $port = null; is a PHP 8.4 compatibility fix.
PHP 8.4 stricter type handling: PHP 8.4 has stricter type checking, and passing -1 as a port value may trigger deprecation warnings or errors

@AnaisPantheor AnaisPantheor requested a review from a team as a code owner November 28, 2025 18:33
@AnaisPantheor AnaisPantheor marked this pull request as draft December 1, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants