(PHP 8)
當參數的類型正確但其值不正確時,會拋出 ValueError。例如,當函式需要正整數時傳遞負整數,或者當函式需要非空字串/陣列時傳遞空字串/陣列。
$message
$code
$previous
null