This commit is contained in:
2020-09-22 14:41:50 +08:00
parent dd757ea8dc
commit 41a89f0ead
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -238,7 +238,7 @@ class Logger extends Component
* @return false|int|mixed|string
* @throws Exception
*/
public function exception($exception)
public function exception(Exception $exception)
{
$errorInfo = [
'message' => $exception->getMessage(),
@@ -267,7 +267,7 @@ class Logger extends Component
* @param Exception $exception
* @return array
*/
private function getException($exception)
private function getException(Exception $exception)
{
$_tmp = [$exception->getMessage()];
$_tmp[] = $exception->getFile() . ' on line ' . $exception->getLine();