Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0RC3

Bug #20296 new array notion in function comma check fails
Submitted: 2014-06-13 10:29 UTC Modified: 2014-06-17 06:48 UTC
From: webpatser Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.5.3)
PHP Version: 5.5.7 OS: MacOS X 10.9.3
Roadmaps: (Not assigned)    
Subscription  


 [2014-06-13 10:29 UTC] webpatser (Christoph Kempen)
Description: ------------ example: if (in_array($arg1, ['foo','bar'])) { gives a 'No space found after comma in function call' if (in_array($arg1, array('foo','bar'))) { give no error.. :-)

Comments

 [2014-06-17 06:48 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Fix committed to Github: https://github.com/squizlabs/PHP_CodeSniffer/commit/91217ee016e4e4b9cb529dd9a 11394401d1192a5