Review Request 111547: Add support for PHP 5.5's array literal dereferencing.

Commit Hook null at kde.org
Thu Jul 18 14:04:46 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111547/
-----------------------------------------------------------

(Updated July 18, 2013, 2:04 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDevelop.


Description
-------

Add support for PHP 5.5's array literal dereferencing.

This would for example look like this:

$a = [1,2,3][0];

where $a = 1;

The rfc detailing the feature can be found here: https://wiki.php.net/rfc/constdereference

I had to rewrite the array handling a little bit to make the typing work as expected and adjusted the unit tests for that as well.


Diffs
-----

  duchain/expressionvisitor.h 3b951fbe878e8a9bd0d8c981a9c2f8c02bfcbc8f 
  duchain/expressionvisitor.cpp 0a926167eeb5e493f22ac62704865ad6461b64d8 
  duchain/tests/expressionparser.h a749e973d11505d94abf1ea43d45513ca22d5244 
  duchain/tests/expressionparser.cpp 72970fce85153fdb1baf97163c306a0e6c312d6c 
  parser/php.g 55b7b64de919137b03331569381dee45cdb21fb2 

Diff: http://git.reviewboard.kde.org/r/111547/diff/


Testing
-------

Unit tests and php example code


Thanks,

Heinz Wiesinger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130718/59c799cd/attachment.html>


More information about the KDevelop-devel mailing list