views:

41

answers:

2

Both Eclipse and NetBeans throw errors about the use of anonymous functions. The error in NetBeans says The language feature not compatible with PHP version indicated in project settings

The code is working but the IDEs don't seem to like it. Should I be worried?

+5  A: 

NetBeans: in the project settings, set the PHP version to 5.3

Yorirou
Brilliant! Any idea how to set the PHP version for files that don't belong to any projects?
Emanuil
+4  A: 

Same for Eclipse. In Project Properties, set PHP Interpreter to 5.3.

Also see

Gordon