This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236668 - Support for PHP 5.5 array and string literal dereferencing syntax
Summary: Support for PHP 5.5 array and string literal dereferencing syntax
Status: RESOLVED DUPLICATE of bug 230677
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 17:01 UTC by dextervip
Modified: 2013-10-02 17:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dextervip 2013-10-02 17:01:07 UTC
Hi,

It would be nice to have array and string literal dereferencing syntax support as it is in http://php.net/manual/en/migration55.new-features.php

Netbeans 7.4 RC1 mark the code below as syntax error:


    $user->setGender(['F','M'][rand(0, 1)]);

However It is correct as in new php 5.5 version
Comment 1 Ondrej Brejla 2013-10-02 17:08:58 UTC

*** This bug has been marked as a duplicate of bug 230677 ***