数据中心变化

This commit is contained in:
乘风
2026-01-05 10:47:10 +08:00
parent 408c6a2029
commit cb612746a6
39 changed files with 14590 additions and 24 deletions

View File

@@ -29,9 +29,17 @@ if (empty(Worker::$eventLoopClass)) {
}
set_error_handler(function ($level, $message, $file = '', $line = 0) {
// 忽略 MongoDB Laravel 的废弃警告E_USER_DEPRECATED = 16384
// 这些警告不影响功能只是提示使用新的API
if ($level === E_USER_DEPRECATED && strpos($message, 'Using "$collection" property is deprecated') !== false) {
return true; // 忽略此警告
}
if (error_reporting() & $level) {
throw new ErrorException($message, 0, $level, $file, $line);
}
return false;
});
if ($worker) {