开发模式 display_errors 问题

浏览:518 发布日期:2021/01/30 分类:ThinkPHP6专区
最新版6.07
移出了 trace 调试包

.envAPP_DEBUG = TRUEvendor/topthink/framework/src/think/App.php    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
最佳答案
评论( 相关
后面还有条评论,点击查看>>