Redundant 'array_values' call on a value iterated in 'foreach'
Reports the array_values()
calls inside foreach
loops in which the iterated value is used without a key. Such calls are redundant and can be safely removed.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023