Closed t-hamano closed 3 years ago
'Match' is a reserved keyword in PHP 8, so I got a fatal error when I activate the plugin.
I got error like this:
Parse error: syntax error, unexpected token "::", expecting "(" in /var/www/html/wp-content/plugins/search-regex/models/search.php on line 322
The reason for the error is that 'Match' is used in the class name.
Change the class name is needed, but 'Match' is the basic name of this plugin. So I don't know of any other reasonable name. Is there a better name?
This will be fixed in the next version of the plugin.
Thanks for the reply. I am looking forward to the next update.
Summary
'Match' is a reserved keyword in PHP 8, so I got a fatal error when I activate the plugin.
Actual Behavior
I got error like this:
Parse error: syntax error, unexpected token "::", expecting "(" in /var/www/html/wp-content/plugins/search-regex/models/search.php on line 322
The reason for the error is that 'Match' is used in the class name.
Steps to reproduce
Change the class name is needed, but 'Match' is the basic name of this plugin. So I don't know of any other reasonable name. Is there a better name?