WPTT / theme-sniffer

Theme Sniffer plugin using sniffs.
MIT License
269 stars 3 forks source link

Theme sniffer is not supported by PHP 5.6? #161

Closed Mariusslo closed 5 years ago

Mariusslo commented 5 years ago

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

dingo-d commented 5 years ago

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