移出了 trace 调试包
.env
APP_DEBUG = TRUE
vendor/topthink/fr protected function debugModeInit(): void
{
// 应用调试模式
if (!$this->appDebug) {
$this->appDebug = $this->env->get('app_debug') ? true : false;
ini_set('display_errors', 'Off');
}
现在的问题是不管 APP_DEBUG 为何模式.ini_set('display_errors', 'Off');
这句都会运行.
导制我看不到php严重的错误信息,网页只显示500错误,
到nginx,错误日志中才能查到什么地方错误.如:
[error] 8289#0: *8 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: app\subscribe\User::subscribe(): Argument #1 ($event) must be of type app\subscribe\Event, think\Event given
不知道是我姿势的问题, 还是BUG
最佳答案
