Array internal pointer reset is unnecessary
reset($array) calls on arrays whose internal pointer is already set on the first element. Such calls are redundant and can be safely removed.
See reset (php.net) for details.
PhpStorm 2023.3, Qodana for PHP 2023.3