PHP 8.0 的 match 表达式漏写 default 半夜线上直接报 UnhandledMatchError 陆零云 2026-11-10 10:13:28 41 0 凌晨两点十七分,监控告警:订单详情接口 500,错误率 12%。日志里一行 Fatal error: UnhandledMatchError: Unhandled match case 6 in /data/www/app/Service/OrderService.php on line 88,堆栈指向状态文案的 match。 前一天下午刚上了个需求,新增订单状态 6 表示部分退款。写 match 的同事只补了前端文案,后端这个 match 里没有 6,也...