开发者

Set PHP version in Netbeans 7 for non-project files

开发者 https://www.devze.com 2023-03-15 04:08 出处:网络
I\'m editing a PHP file in Netbeans 开发者_如何转开发that is not part of a project. Although I have PHP 5.3 installed, Netbeans complains about my use of a lambda function: \"Language feature not comp

I'm editing a PHP file in Netbeans 开发者_如何转开发that is not part of a project. Although I have PHP 5.3 installed, Netbeans complains about my use of a lambda function: "Language feature not compatible with PHP version indicated in project settings".

Is there a way to tell Netbeans to think in 5.3 when I don't have project settings to edit?

I'm using Netbeans 7.0 with PHP 5.3.3 on Ubuntu.

UPDATE: The code is working, it's just the inspection that is borken.


Right click your project in the Projects tab, click Properties, then on the Sources tab, set the PHP Version. I'm using Netbeans 7.1.2


Go to File Menu of net beans and select project properties of the project and change the version of php from # PHP Version : PHP 5.6 or another. This Error Showing for PHP version(language feature not compatible with php version indicated in project settings)

Set PHP version in Netbeans 7 for non-project files

Set PHP version in Netbeans 7 for non-project files

Set PHP version in Netbeans 7 for non-project files

Set PHP version in Netbeans 7 for non-project files


I recently did an update to my NetBeans (v7.0.1). I just tried creating a lambda fn and the IDE didn't show any warnings/errors. Try updating your NB.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号