magento-ecg / coding-standard

Magento PHP_CodeSniffer Coding Standard
MIT License
308 stars 99 forks source link

Fix infinity loop in include sniff #13

Closed wojtekn closed 9 years ago

wojtekn commented 9 years ago

"while" loop keeps checking for semicolon as next token. It leads to infinity loop if there is include call inside PHP tags without semicolon at the end eg.:

<?php include $this->something() ?>
zlik commented 9 years ago

Wojtek, thank you for your contribution! beer