Describe the bug
phpcbf can not process 'use' keyword correctly when i use mulitiple namespaces seperated by ','.
Code sample
<?php
namespace QL;
use phpQuery,Exception,ReflectionClass;
To reproduce
Steps to reproduce the behavior:
- Create a file called
test.php with the code sample above...
- Run
phpcbf --standard=psr2 --extensions=php test.php
- Content of test.php became:
<?php
namespace QL;
use phpQuery;
useException,ReflectionClass;
Expected behavior
I hope it would be:
<?php
namespace QL;
use phpQuery;
use Exception;
use ReflectionClass;
Versions (please complete the following information):
- OS: CentOS Linux release 7.6.1810 (Core)
- PHP: 7.1.7
- PHPCS: PHP_CodeSniffer version 3.5.7 (stable)
- Standard: PSR2