Re: Bug #19411 [Opn->Fbk]: magic method error on __construct()

From: Date: Tue, 08 May 2012 13:12:19 +0000
Subject: Re: Bug #19411 [Opn->Fbk]: magic method error on __construct()
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8623@lists.php.net to get a copy of this message
Jimgreen8 在 May 8, 2012,0:26,gsherwood@squiz.net 写道: > Edit report at > https://pear.php.net/bugs/bug.php?id=19411&edit=1 > > ID: 19411 > Updated by: gsherwood@squiz.net > Reported By: jpkeller at gmail dot com > Summary: magic method error on __construct() > -Status: Open > +Status: Feedback > Type: Bug > Package: PHP_CodeSniffer > Operating System: Ubuntu > Package Version: 1.3.3 > PHP Version: 5.3.5 > -Assigned To: > +Assigned To: squiz > Roadmap Versions: > New Comment: > > -Status: Open > +Status: Feedback > -Assigned To: > +Assigned To: squiz > I can't replicate this. > > What exactly does "occasionally" mean? The exact same version of PHPCS, > PHP and > the code you are checking sometimes produces different results, or that > PHPCS used > on different setups or code is causing issues? > > Either way, are you able to provide me with code that I can run PHPCS > over to make > it fail? > > Also, what standard are you using? Is it a built-in one or a custom one? > > > Previous Comments: > ------------------------------------------------------------------------ > > [2012-05-08 03:10:23] vanderhuge > > Description: > ------------ > Occasionally we've been running into errors where phpcs is > reporting valid magic functions as invalid due to the double > underscore. > > > "156 | ERROR | Function name "__construct" is invalid; only > PHP magic methods should be prefixed with a double > underscore" > > ------------------------------------------------------------------------ > > > -- > Edit this bug report at > https://pear.php.net/bugs/bug.php?id=19411&edit=1 > > > -- > PEAR Bugs Mailing List (http://pear.php.net/bugs/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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