Menu

#1843 PHP 5.4+ short array syntax not recognized in PHPParser

None
closed-fixed
None
5
2019-05-24
2016-02-09
Dynamo Dan
No

jEdit 5.3, PHPParser 2.0.5, Ubuntu 12.04 (although I fully expect the bug is on all platforms) Oracle Java 1.7.0_80. The version of PHP installed on my system is 5.5.

Steps to reproduce:

  1. write any code that uses the new short array syntax described in the PHP 5.4 "New features" page on php.net: http://php.net/manual/en/migration54.new-features.php
  2. Open a sidekick panel and a error panel as shown in the screenshot.
  3. Try to expand any class nodes as shown in the screenshot.
  4. Observe the lack of class methods beyond the one in which syntax errors are found.
  5. Observe the syntax errors incorrectly reported in the error list panel.
1 Attachments

Discussion

  • Dynamo Dan

    Dynamo Dan - 2016-02-09

    Oops here is a better shot showing the error list at the bottom. (The first shot was a hypersearch panel.)

     
  • Matthieu Casanova

    • status: open --> closed-fixed
    • assigned_to: Matthieu Casanova
    • Group: -->
     
  • Matthieu Casanova

    Fixed in trunk

     
  • Mike McCallister

    I see it says fixed - but I am getting this... see attached

    That is with the plugin as installed through the jedit plugin manager. Is there some trick to have it allow [] array syntax?

     

    Last edit: Mike McCallister 2019-05-24

Log in to post a comment.

MongoDB Logo MongoDB