WPTT / theme-sniffer

Theme Sniffer plugin using sniffs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme sniffer is not supported by PHP 5.6?

Mariusslo opened this issue · comments

When trying to activate this plugin on wordpress which is on PHP5.6 I get a fatal error :
syntax error, unexpected ':', expecting ';' or '{' in C:\xampp5.6\htdocs\GitHub\NativeSimple\wp-content\plugins\theme-sniffer\src\class-plugin.php on line 159

No it isn't. As noted in the readme, and on the plugin page, you need to have PHP 7.0 or higher to be able to run it.

You can sniff if the theme will be compatible with the lower PHP versions tho (once you update the PHP version).

The rationale behind it is that we want the people to update their PHP versions. 5.6 has reached end of life a long time ago. As a matter of fact, PHP 7.0 has too.

Always use the latest PHP version. It offers the best performance and security 🙂

https://www.php.net/supported-versions.php