0

Some of my clients are reporting this error, but its not happening on my side.

PHP Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) ... on line 2464

function foo_getPlaylistFromCategory($atts){

    if(isset($atts['match']))$_match = $atts['match'];

I see match is a reseved keyword in php 8, but I use $_match as var name.

https://www.php.net/manual/en/reserved.keywords.php

Otherwise I dont understand what is wrong with this code. The function which contains this code does not even run on plugin installation.

Toniq
  • 3,918
  • 9
  • 42
  • 96

0 Answers0