php_syntax_checker icon indicating copy to clipboard operation
php_syntax_checker copied to clipboard

php 7 syntax not working

Open Vijayit87 opened this issue 6 years ago • 1 comments

My code empty($salary) === false ?? false;

Error message wen i save the file. PHP Parse error: syntax error, unexpected '?'

Can you kindly fix this

Vijayit87 avatar Jun 12 '18 13:06 Vijayit87

This is the issue of your default command line PHP which would not be PHP 7. You need to use PHP 7 version for your command line

ghost avatar Oct 30 '18 11:10 ghost