- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
We have been running phpcbf with PSR2 standard on our php codebase and many files have caused errors. phpcbf seemingly goes into an infinite loop until it reaches 50 passes. We're pretty sure this is due to this syntax in our code: http://php.net/manual/en/control-structures.alternative-syntax.php
phpcbf test.php --standard=PSR2
<?php //test.php if ($a == 5): echo "a equals 5"; echo "..."; elseif ($a == 6): echo "a equals 6"; echo "!!!"; else: echo "a is neither 5 nor 6"; endif; ?>