# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | 0.15.2 | | Rule | ArrayKeysAndInArrayToArrayKeyExistsRector | <!-- Please describe your problem here. --> Variables that are used later are ignored. For example below phpstan now complains about ... ``` 249 Undefined variable: $tableAliases ``` ## Minimal PHP Code Causing Issue https://getrector.org/demo/85d78e6e-df97-485e-9412-e90550777ee5 ## Expected Behaviour Skip it. (in this case)