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

Bug #19188 Lots of PHP Notices when analyzing the Symfony framework
Submitted: 2012-01-04 19:17 UTC
From: bellingard Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.3.2)
PHP Version: 5.3.5 OS: Linux ubuntu 2.6.38-8-generic
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 : 31 - 14 = ?

 
 [2012-01-04 19:17 UTC] bellingard (Fabrice Bellingard)
Description: ------------ While analyzing the Symfony PHP framework using the Squiz standard, lots of PHP Notices are printed out. Test script: --------------- git checkout git://github.com/symfony/symfony.git cd symfony phpcs --standard=Squiz src Expected result: ---------------- No notices should appear. Actual result: -------------- Here's the exhaustive list of notices that are printed out: - PHP Notice: Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Tokenizers/PHP.php on line 482 - PHP Notice: Undefined offset: 1811 in /usr/share/php/PHP/CodeSniffer/Standards/Squiz/Sniffs/CSS/MissingColonSniff.php on line 65 (+ lines 70/80/83/85) - PHP Notice: Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php on line 72

Comments

 [2012-01-09 11:11 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Committed some fixes to the git repo. No notices are generated any more.