unexpected > T_STRING, expecting T_OLD_FUNCTION or

2020-05-07 08:32发布

Anything stand out on line 37 or perhaps the way this class constructor is made?

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /dir/public_html/site/wp-content/themes/test/category-images/category-images.php on line 37

class CategoryImagesII extends CategoryImagesII_Plugin
{

protected $error_codes = array(); // LINE 37
protected $error_strings = array();

1条回答
时光不老,我们不散
2楼-- · 2020-05-07 09:13

I bet it's PHP 4 acting up, because it does not recognize the PHP 5-only protected keyword.

查看更多
登录 后发表回答