Quantcast
Channel: WordPress.org Forums » [WP-Syntax] Support
Viewing all articles
Browse latest Browse all 30

Warning message moving from PHP 7.4 to PHP 8.1

$
0
0

Replies: 3

Moving from PHP 7.4 to PHP 8.1 trigger this warning message

( ! ) Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in \wp-content\plugins\wp-syntax\wp-syntax.php on line 383

Solution:
Remove the ampersand before $match at the line 241

New 241 line:
public static function substituteToken( $match ) {


Viewing all articles
Browse latest Browse all 30

Trending Articles