2
votes

My php project is running with error free but PhpStorm does not recognize <%= tag as expected my PhpStorm version is: PhpStorm 2017.2.1 Build #PS-172.3544.41, built on August 2, 2017 The sample is below: PhpStorm screen shot

1
why are you using asp like tags in the first place? - madalinivascu
enquote the PHP and ignore the warnings, name: '<?= ... ?>', - DarkBee
Isn't that JSP? Why would phpstorm recognize a JSP tag? - chiliNUT
@chiliNUT It's the ASP tag syntax. And if you think that's weird, PHP used to recognize <script language="php"> as well… - user149341
@duskwuff whoa... I knew about the script tag but not the asp tags...gnarly! - chiliNUT

1 Answers

7
votes

That's the ASP tag syntax, not the PHP syntax. Older versions of PHP used to support that syntax as an option, but it is no longer available in PHP 7.0 or later. You need to stop using it, as it makes your code incompatible with current versions of PHP.