PHP 5.4 Support: Traits
By Ondrej Brejla on Mar 28, 2012
Hi all! Today we would like to introduce you to another new PHP 5.4 feature for NetBeans 7.2, which is called Traits.
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).
So what exactly is exact Trait support in NetBeans? Syntax is recognized correctly and code completion offers declared, inherited stuff from used traits.
Note: Just one thing is not supported yet - resolving name conflicts and aliasing of method names (it means that you will not have these "virtual" names in your code completion). We would like to implement it in a future NetBeans release. Sorry for any inconvenience.