Page 1 of 1

What version of PHP does PHP Tools support?

PostPosted: February 3rd, 2013, 9:20 pm
by fantasticjamieburns
Hello,

I wrote a line of code today that PHP Tools flagged as an error (scroll to the right):

NotAnError.png


This syntax came in with PHP 5.4:
http://php.net/manual/en/migration54.new-features.php

"Class member access on instantiation has been added, e.g. (new Foo)->bar()."

Which leads me to my question - what version of PHP does PHP Tools support (I couldn't see anything on the website)?

Jamie.

Re: What version of PHP does PHP Tools support?

PostPosted: February 3rd, 2013, 9:47 pm
by Jakub Misek
Hi,

Thanks for the question. This is not stated on the website yet; PHP Tools supports PHP 5.3 + we are continuously adding PHP 5.4 and PHP 5.5 features.

We'll note this information on product page. Your PHP 5.4 syntax will be added in some future release.

Thanks,

Re: What version of PHP does PHP Tools support?

PostPosted: February 7th, 2013, 7:38 pm
by fantasticjamieburns
Great thanks for the update.
Can I assume that traits are supported soon?

Re: What version of PHP does PHP Tools support?

PostPosted: February 7th, 2013, 8:36 pm
by Jakub Misek
traits and other PHP 5.4 features are planned to be added after 1.6 release.

Following has to be added:
• Support for traits has been added.
• Function array dereferencing has been added, e.g. foo()[0], $o->method()[0]->otherMethod();
• Class member access on instantiation has been added, e.g. (new Foo)->bar().

Thanks