Inspectopedia
 
2024.3

Write access to referenced array value without 'unset'

Warning
New
Last modified: 03 December 2024

Reports the write access expressions on variables that are still referencing the array value previously used in a foreach statement.

It is recommended to destroy such references by using unset.

See foreach (php.net) and unset (php.net) for details.