When using rector in conjunction with ecs, how to be sure declare(strict_types=1) is the first statement? #7414
-
|
Hi Rector Team, Now my question is how to prevent rector and ecs stepping on their toes each other? When I run ecs without the strict rule but rector with code quality it puts the use statements at the top of the file before the declare(strict_types=1); statement which should be the first statement right after <?php when present. Is there a way to prevent this behavior? @TomasVotruba @samsonasik ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
|
Hi, that should not happen. |
Beta Was this translation helpful? Give feedback.
Hi, that should not happen.
we'll need a demo link with particular Rector rule and invalid code.