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

Summary: Support for PHP 5.5 array and string literal dereferencing syntax
Product: php Reporter: dextervip
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:

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 ***