@@ -121,12 +121,12 @@ public function collect(Request $request, Response $response, ?\Throwable $excep
121
121
) {
122
122
if ($ response ->headers ->has ('Content-Type ' ) && str_contains ($ response ->headers ->get ('Content-Type ' ) ?? '' , 'html ' )) {
123
123
$ dumper = new HtmlDumper ('php://output ' , $ this ->charset );
124
- $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
125
124
} else {
126
125
$ dumper = new CliDumper ('php://output ' , $ this ->charset );
127
- $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
128
126
}
129
127
128
+ $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
129
+
130
130
foreach ($ this ->data as $ dump ) {
131
131
$ this ->doDump ($ dumper , $ dump ['data ' ], $ dump ['name ' ], $ dump ['file ' ], $ dump ['line ' ], $ dump ['label ' ] ?? '' );
132
132
}
@@ -235,12 +235,12 @@ public function __destruct()
235
235
236
236
if ($ this ->webMode ) {
237
237
$ dumper = new HtmlDumper ('php://output ' , $ this ->charset );
238
- $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
239
238
} else {
240
239
$ dumper = new CliDumper ('php://output ' , $ this ->charset );
241
- $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
242
240
}
243
241
242
+ $ dumper ->setDisplayOptions (['fileLinkFormat ' => $ this ->fileLinkFormat ]);
243
+
244
244
foreach ($ this ->data as $ i => $ dump ) {
245
245
$ this ->data [$ i ] = null ;
246
246
$ this ->doDump ($ dumper , $ dump ['data ' ], $ dump ['name ' ], $ dump ['file ' ], $ dump ['line ' ], $ dump ['label ' ] ?? '' );
0 commit comments