ofbeaton / granite-php

Opinionated coding style enforcement for PHP.
https://github.com/ofbeaton/granite/wiki/PHP
MIT License
1 stars 0 forks source link

disallows print_r only if it doesn't return #11

Open ofbeaton opened 9 years ago

ofbeaton commented 9 years ago

print_r is no good, disallow it. But if it returns instead of prints to screen, it should be okay. This is great for adding arrays to exceptions and logs. We need to write a new sniff for this.