BUG? – Claims reserved keyword __dir__ being used when its not
-
The error message is this:
Function name, class name, namespace name or constant name can not be reserved keyword '__dir__'
Referring to the line that looks like this;
if(defined('__DIR__')) { define('WPS_PLUGIN_BASE_NAME', basename(__DIR__)); }
As you can see the __DIR__ keyword is not being used as a class, namespace, nor a constant name but merely being checked if it just exists.
Unless i am misunderstanding that seems to be a bug in your plugin.
https://www.ads-software.com/plugins/php-compatibility-checker/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘BUG? – Claims reserved keyword __dir__ being used when its not’ is closed to new replies.