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 1313use Guanguans \LaravelExceptionNotify \Pipelines \ToHtmlPipeline ;
1414use Guanguans \LaravelExceptionNotify \Pipelines \ToMarkdownPipeline ;
1515use Guanguans \LaravelExceptionNotify \Pipelines \TrimPipeline ;
16+ use Guanguans \LaravelExceptionNotify \Pipelines \VarExportPipeline ;
1617
1718return [
1819 /*
132133 |
133134 */
134135 'pipeline ' => [
136+ VarExportPipeline::class,
135137 TrimPipeline::class,
136138 ],
137139
Original file line number Diff line number Diff line change @@ -47,9 +47,6 @@ protected function applyPipeCollect()
4747
4848 public function __toString ()
4949 {
50- return varexport (
51- $ this ->applyPipeCollect (),
52- true
53- );
50+ return (string ) var_export ($ this ->applyPipeCollect (), true );
5451 }
5552}
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 <ityaozm@gmail.com>
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