Support » Plugin: Redis Object Cache » PHP Parse Error in object-cache.php

  • Resolved pavelxk

    (@pavelxk)


    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:

    $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

    (@tillkruess)

    This plugin requires PHP 7.0 or newer to function.

    Thread Starter pavelxk

    (@pavelxk)

    It is running on PHP 8.0.

    Plugin Author Till Krüss

    (@tillkruess)

    No it’s not. This error only occurs on PHP 5.6 and older.

    PHP Parse error: syntax error, unexpected ‘?’
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.