# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code Causing Issue See https://getrector.com/demo/4ffb788a-2744-46bc-8f09-56e20aa5b819 ```php <?php final class DemoFile implements \Countable { public function isNotEmpty(): bool { return 0 < \count($this); } public function count(): int { return 0; } } ``` ### Responsible rules * `CountArrayToEmptyArrayComparisonRector` ## Expected Behavior <!-- How should Rector change the code? Or should Rector skip it? --> In this case rector should do nothing as counted value is not an array,
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/4ffb788a-2744-46bc-8f09-56e20aa5b819
Responsible rules
CountArrayToEmptyArrayComparisonRectorExpected Behavior
In this case rector should do nothing as counted value is not an array,