Inspectopedia
 
2024.3

Misordered 'rand' function arguments

Error
New
Last modified: 03 December 2024

Reports the rand($min, $max) family function calls in which the max argument is less than min. For such functions as mt_rand and random_int, this will result in a fatal error.