I am curious as to why the following syntax is rejected by my PhpStorm editor:
PhpStorm version: 2016.1.2
I am curious as to why the following syntax is rejected by my PhpStorm editor:
PhpStorm version: 2016.1.2
?User from your example) is a PHP 7.1 feature.PHP Language Level must be set to 7.1 in PhpStorm settings for this project (although right now it does not produce an error if language is set below 7.1 -- see WI-32136 ticket).Conclusion: upgrade your PhpStorm to the latest version (which is 2017.2.1 at this moment). At very least you need to have PhpStorm 2016.2.2 for this particular syntax to be supported 9not showing an error).