PHP 5.4 Support: Minor Features

Posted by Ondrej Brejla on Oracle Blogs See other posts from Oracle Blogs or by Ondrej Brejla
Published on Wed, 21 Mar 2012 10:12:38 +0000 Indexed on 2012/03/21 11:35 UTC
Read the original article Hit count: 361

Filed under:

Hi all! This weak is another PHP weak. Asking why? PHP migrates to Git and GitHub! Isn't that cool? And this week is also NetBeans for PHP week, because we have some new NetBeans 7.2 features for you.

Note: All PHP 5.4 features are available in your projects after setting Project Properties -> Sources -> PHP Version to PHP 5.4 value, or after choosing the same value during a PHP Project creation (in New Project Wizard).

Callable type hint

Let's start with a new PHP 5.4 type hint - callable. It's now in code completion and you can use it in your function declarations!

PHP 5.4: Callable

Binary notation for integers

The next feature is about recognizing of a new binary notation for integers, so you can use it without any problem - no syntax error will occur.

PHP 5.4: Binary

Class::{expr}()

And the last feature is about using of Class::{expr}() invocation. It's supported by our parser too, so no syntax errors will occur either.

PHP 5.4: Class::{expression}()

That's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (component php, subcomponent Editor). Thanks.

© Oracle Blogs or respective owner

Related posts about /Features