syntax error, unexpected ‘string’ (T_STRING),
-
I’m working on a plugin running on wamp64 and PHP 7.4.0. When I tried changing the PHP version to 7.3.12 I got this error:
Parse error: syntax error, unexpected ‘string’ (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) on the line indicated by >>>> in the code below.defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'WC_Test_Integration' ) ) : class WC_Test_Integration extends WC_Integration { >>>> public function __construct() { }
The plugin works fine when I use PHP 7.4.0. The problem is that the plugin is going to be used on sites running PHP 7.3.12. Does anyone know why I’m getting this error?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘syntax error, unexpected ‘string’ (T_STRING),’ is closed to new replies.