Title: PHP Parse Error in object-cache.php
Last modified: December 27, 2022

---

# PHP Parse Error in object-cache.php

 *  Resolved [pavelxk](https://wordpress.org/support/users/pavelxk/)
 * (@pavelxk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-in-object-cache-php/)
 * Hello,
   I am getting parse errors in some sites:
 * PHP Parse error: syntax error, unexpected ‘?’ in C:\inetpub\wwwroot\asdf\wp-content\
   object-cache.php on line 1242
 * The lines 1240-1242 are:
 *     ```wp-block-code
       $results = array_map( function ( $response ) {
         return (bool) $this->parse_redis_response( $response );
       }, $tx->{$method}() ?? [] );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-in-object-cache-php/#post-16324228)
 * This plugin requires PHP 7.0 or newer to function.
 *  Thread Starter [pavelxk](https://wordpress.org/support/users/pavelxk/)
 * (@pavelxk)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-in-object-cache-php/#post-16324710)
 * It is running on PHP 8.0.
 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-in-object-cache-php/#post-16326056)
 * No it’s not. This error **only** occurs on PHP 5.6 and older.
 *     ```wp-block-code
       PHP Parse error: syntax error, unexpected ‘?’
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Parse Error in object-cache.php’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/php-parse-error-in-object-cache-php/#post-16326056)
 * Status: resolved