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

Bug #20296 new array notion in function comma check fails
Submitted: 2014-06-13 15:29 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 38 = ?

 
 [2014-06-13 15: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 11: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