Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpcs version not specified

Tags:

php

phpcs

I spent hours on Google searching for an answer too this before asking, in phpcs I had this error "PHP version not specified", but I couldn't find an answer on Google, eventually I've just came across this "PHP Version 5" which cleared the error up, but I'm baffled as PHP 5 is out of date, I'm on PHP 7.2.10.

If anyone could shed light on this I'd much appreciate it, many thanks.

Edit: I've just added the @ lines at the top, and it breaks the "PHP Version 5" as it's saying "PHP version not specified".

  • @category
  • @package
  • @author
  • @license
  • @link
  • PHP version 5
like image 300
Have a Laugh Avatar asked Oct 24 '18 07:10

Have a Laugh


1 Answers

enter image description here

"php version" All letters will be in lower case

* php version 7.2.10

* Must be placed before @tags

like image 191
Rowf Abd Avatar answered Nov 16 '22 22:11

Rowf Abd