File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,16 @@ public function toArray(): array
58
58
ExceptionsFieldsEnum::MESSAGE ->value => $ this ->message ,
59
59
ExceptionsFieldsEnum::USER_MESSAGE ->value => $ this ->userMessage ,
60
60
ExceptionsFieldsEnum::USER_TITLE ->value => $ this ->userTitle ,
61
- ExceptionsFieldsEnum::LOCATION ->value => $ this ->file . ': ' . $ this ->line ,
61
+ ExceptionsFieldsEnum::LOCATION ->value => ( $ this ->getFile () . ': ' . $ this ->getLine ()) ,
62
62
ExceptionsFieldsEnum::TRACE_ID ->value => data_get (Log::sharedContext (), 'trace_id ' ),
63
63
ExceptionsFieldsEnum::PREVIOUS_MESSAGE ->value => $ this ->previous ->getMessage () ?? null ,
64
64
ExceptionsFieldsEnum::PREVIOUS_TYPE ->value => $ this ->previous ::class ?? null ,
65
65
ExceptionsFieldsEnum::PREVIOUS_CODE ->value => $ this ->previous ->getCode () ?? null ,
66
- ExceptionsFieldsEnum::PREVIOUS_LOCATION ->value => $ this ->previous ->file . ': ' . $ this -> previous -> line ??
67
- null ,
66
+ ExceptionsFieldsEnum::PREVIOUS_LOCATION ->value => ( $ this ->previous ->getFile () . ': ' .
67
+ $ this -> previous -> getLine ()) ?? null ,
68
68
];
69
69
70
+
70
71
return array_filter (
71
72
$ allFields ,
72
73
function ($ key ) {
You can’t perform that action at this time.
0 commit comments