Find the best Rector rule to solve your problem. Searching through 769 rules.
Found 1 rule. That's the one:
Change empty() check to explicit strict comparisons
final class SomeEmptyArray
{
public function run(array $items)
{
- return empty($items);
+ return $items === [];
}
}