Bug #19651 [Opn]: PHP 5.4 square bracket arrays indentation error

From: Date: Tue, 16 Oct 2012 22:43:57 +0000
Subject: Bug #19651 [Opn]: PHP 5.4 square bracket arrays indentation error
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9193@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19651&edit=1 ID: 19651 Updated by: gsherwood@squiz.net Reported By: andrejs dot verza at gmail dot com -Summary: PHP 5.4 square bracket arrays indentitation error. +Summary: PHP 5.4 square bracket arrays indentation error Status: Open Type: Bug Package: PHP_CodeSniffer Operating System: Windows 7 x64 Package Version: 1.4.0 PHP Version: 5.4.7 Roadmap Versions: New Comment: -Summary: PHP 5.4 square bracket arrays indentitation error. +Summary: PHP 5.4 square bracket arrays indentation error Previous Comments: ------------------------------------------------------------------------ [2012-10-13 12:42:42] drumsibumsi Description: ------------ CodeSniffer wrongly reports errors on array indentitation when using PHP 5.4 short notation for arrays in function calls. See test script. Test script: --------------- call_some_function( 'argument_1', 'argument_2', [ 'array_item_1', 'array_item_2', 'array_item_3', ] ); Expected result: ---------------- No errors. Actual result: -------------- Error on indentitation level: "Multi-line function call not indented correctly". CodeSniffer expects array items to be aligned inline with square brackets. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19651&edit=1

« previous php.pear.bugs (#9193) next »