self::class syntax error
-
We updated WordPress to 4.8.2 and the site died with this error:
PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /home/user/public_html/user/wp-content/plugins/sermon-manager-for-wordpress/includes/class-sm-dates-wp.php on line 42
If I comment out the following line then the site is fine:
add_filter( 'get_the_date', array( self::class, 'get_the_date' ), 10, 3 );
Updated to the most recent sermon manager plugin and problem remains.
Any ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘self::class syntax error’ is closed to new replies.