When using rector in conjunction with ecs, how to be sure declare(strict_types=1) is the first statement? #7414
Answered
by
TomasVotruba
alexandreelise
asked this question in
Q&A
|
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 ? |
Answered by
TomasVotruba
Aug 24, 2022
Replies: 1 comment 9 replies
|
Hi, that should not happen. |
9 replies
Answer selected by
alexandreelise
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, that should not happen.
we'll need a demo link with particular Rector rule and invalid code.