SimplifyEmptyCheckOnEmptyArrayRector

Simplify empty() functions calls on empty arrays

 $array = [];

-if (empty($values)) {
+if ([] === $values) {
 }

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SimplifyEmptyCheckOnEmptyArrayRector::class,
    ]);
SETS:  Code Quality