Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1753 PHPParser doesn't support trait syntax

open
nobody
None
5
2013-11-16
2013-11-16
Vaclav Votipka
No

It seems that PHPParser doesn't support the trait syntax (see http://php.net/trait\)

1) In error list it says 'statement expected' on this minified source code:

---------------------- begin code --------------------
trait InputParamParser{

protected function foo(){
return true;
}

}
---------------------- end code --------------------

2) it says "'}' expected" on this source code:

---------------------- begin code --------------------
class RequestProcessor{
use InputParamParser;

}
---------------------- end code --------------------

I think in both cases it hase to write no error.

jEdit version 5.0.0
PHPParser 2.0.1
Gentoo linux

Discussion