File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 13
13
use Guanguans \LaravelExceptionNotify \Pipelines \ToHtmlPipeline ;
14
14
use Guanguans \LaravelExceptionNotify \Pipelines \ToMarkdownPipeline ;
15
15
use Guanguans \LaravelExceptionNotify \Pipelines \TrimPipeline ;
16
+ use Guanguans \LaravelExceptionNotify \Pipelines \VarExportPipeline ;
16
17
17
18
return [
18
19
/*
132
133
|
133
134
*/
134
135
'pipeline ' => [
136
+ VarExportPipeline::class,
135
137
TrimPipeline::class,
136
138
],
137
139
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ protected function applyPipeCollect()
47
47
48
48
public function __toString ()
49
49
{
50
- return varexport (
51
- $ this ->applyPipeCollect (),
52
- true
53
- );
50
+ return (string ) var_export ($ this ->applyPipeCollect (), true );
54
51
}
55
52
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * This file is part of the guanguans/laravel-exception-notify.
5
+ *
6
+ * (c) guanguans <[email protected] >
7
+ *
8
+ * This source file is subject to the MIT license that is bundled.
9
+ */
10
+
11
+ namespace Guanguans \LaravelExceptionNotify \Pipelines ;
12
+
13
+ use Closure ;
14
+
15
+ class VarExportPipeline
16
+ {
17
+ public function handle (string $ report , Closure $ next ): string
18
+ {
19
+ return $ next (varexport ($ report , true ));
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments