Open endel opened 9 years ago
Phalanger parses code containing traits use, but it does not support their compilation. The method or operation is not implemented.
@jakubmisek Thank you for your quick response! I will try without compiling it.
Phalanger looks freaking great, what a hard work you did here!
Thank you!
Anyway traits are not implemented yet. Phalanger compiles everything, so it can't run "without compiling it". :-)
@jakubmisek got it!
Do you think it will be implemented later in Phalanger 4.x.x?
@jakubmisek
I'm using this tool to convert PHP 5.4+ into PHP 5.3 standards, which covers downgrading PHP Traits https://github.com/endel/php-code-downgrade/
So if there are any plans in supporting this, it could hold on for a while.
The feature will be implemented in https://github.com/peachpiecompiler/peachpie
Does Phalanger already supports traits?
I'm trying to build this simple example from PHP documentation:
Errors and stack trace using Visual Studio 2013 and Phalanger 4.0:
Since the error tells about "PhalangerTraits", I suppose it is implemented somehow, correct? Am I missing something here?
Thank you.