-
-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
rectorphp/rector-src
#3640Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/001ae62c-7857-4ce2-b4c1-8be77fd37568
<?php
final class DemoFile
{
public function run()
{
$a = ['a', 'b'];
echo in_array('a', [...$a]);
}
}Responsible rules
SingleInArrayToCompareRector
Expected Behavior
Either no change or
<?php
final class DemoFile
{
public function run()
{
$a = ['a', 'b'];
echo in_array('a', $a);
}
}Reactions are currently unavailable