我正在使用phpStorm。和我有以下一塊由Kohana的框架編寫的代碼:禁用警告'拋出的對象必須是異常的實例'
throw HTTP_Exception::factory(404,
'The requested URL :uri was not found on this server.',
array(':uri' => $this->request->uri())
)->request($this->request);
的問題是,考慮phpStorm這段代碼無效,並顯示以下消息:the thrown object must be an instance of the exception
。我不喜歡它,因爲它顯示整個項目直到第一個目錄無效。
有什麼辦法可以解決它而無需更改代碼?