Inspectopedia
 
2024.3

Redundant 'array_values' call on a value iterated in 'foreach'

Info
New
Last modified: 03 December 2024

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.