PhpStorm
 
2023.2
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: Invalid argument supplied for 'foreach()'

Last modified: 16 May 2022

Reports the foreach constructs used on variables of the string, float, int, or boolean type.

See foreach (php.net) for details.