False positive: This statement seems to be disconnected from its parent foreach.
inDeev opened this issue · comments
I had the same Issue. Reported here:
https://youtrack.jetbrains.com/issue/QD-7094/It-is-not-a-problem-EA-This-statement-seems-to-be-disconnected-from-its-parent-foreach.
This EA looks too dificult for me. In my opinion it is almost not possible to know what exactly affects something out of foreach scope. This EA should be removed, I'm seeing it often and in some cases it helped to me, but in global perspective it has more false positives than true.
@ea-inspections-team: this inspection is receiving a lot of complaints. Can you disable it by default in the next release please?
Hi, it is part of PHPWord package https://github.com/DerekMarcinyshyn/phpword/blob/master/samples/Sample_09_Tables.php