Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set PHP version in Netbeans 7 for non-project files

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.

like image 363
iftheshoefritz Avatar asked Jun 23 '11 16:06

iftheshoefritz


People also ask

How do I run an existing PHP project in NetBeans?

You go to files/New project choose PHP/PHP Application with existing sources. Choose you sources folder and that's it.


1 Answers

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

like image 72
user1491819 Avatar answered Oct 12 '22 18:10

user1491819