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

Bug #20308 Squiz.ValidVariableNameSniff - wrong variable usage
Submitted: 2014-06-22 16:07 UTC
From: aik099 Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.5.3)
PHP Version: 5.4.20 OS:
Roadmaps: (Not assigned)    

 [2014-06-22 16:07 UTC] aik099 (Alexander Obuhovich)
Description: ------------ On I'm comparing ValidVariableName sniffs from Squiz and Zend and it's obvious, that in Squiz (on the left) the "$bracket = $objOperator = " should be replaced just with "$bracket =". The $objOperator is assigned later on in fact.


 [2014-06-24 06:50 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Yep, definitely a typo. Thanks. Committed the fix here: 35e312de0348f