PHP - Manual: ClosedGeneratorException
2025-02-27
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
当尝试从已关闭的 Generator 中检索值时,会引发 ClosedGeneratorException。
$message
$code
$previous
null
官方地址:https://www.php.net/manual/en/class.closedgeneratorexception.php