Skip to content

Commit

Permalink
Update CustomizeFormatter.stub
Browse files Browse the repository at this point in the history
Fix Laravel 10 Error Handle
  • Loading branch information
musoftware committed Nov 8, 2023
1 parent 13bc0a9 commit bde4500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Base/CustomizeFormatter.stub
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class CustomizeFormatter
/**
* Process Log Record
*
* @param array $record
* @param array|\Monolog\LogRecord $record
* @return array
*/
public function processLogRecord(array $record): array
public function processLogRecord(array|\Monolog\LogRecord $record): array|\Monolog\LogRecord
{
$record['extra'] += [
'route' => $this->request->route() ? $this->request->route()->getName() : '',
Expand Down

0 comments on commit bde4500

Please sign in to comment.