Bug #19748 [Opn->Csd]: code sniffer error with closure in function call

From: Date: Wed, 12 Dec 2012 18:02:45 +0000
Subject: Bug #19748 [Opn->Csd]: code sniffer error with closure in function call
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9412@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19748&edit=1 ID: 19748 Updated by: benoit.leveque@gmail.com Reported By: benoit dot leveque at gmail dot com Summary: code sniffer error with closure in function call -Status: Open +Status: Closed Type: Bug Package: PHP_CodeSniffer Operating System: Ubuntu 11.10 Package Version: 1.4.3 PHP Version: 5.3.15 -Assigned To: +Assigned To: blacksmith Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: blacksmith ok, this work has expected Previous Comments: ------------------------------------------------------------------------ [2012-12-12 16:55:06] blacksmith Description: ------------ when i run phpcs with psr2 standard i get an error with closure user inside function call Test script: --------------- https://gist.github.com/4269459 Expected result: ---------------- no error Actual result: -------------- -------------------------------------------------------------------------------- FOUND 2 ERROR(S) AFFECTING 2 LINE(S) -------------------------------------------------------------------------------- 4 | ERROR | Opening parenthesis of a multi-line function call must be the | | last content on the line 6 | ERROR | Closing parenthesis of a multi-line function call must be on a | | line by itself -------------------------------------------------------------------------------- ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19748&edit=1

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