File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,13 @@ static function (&$value) : void {
107107 $ trace = array_map (
108108 static function (array $ call ) use ($ flatten ) : array {
109109 array_walk_recursive ($ call ['args ' ], $ flatten );
110+
110111 return $ call ;
111112 },
112113 $ trace
113114 );
114115 }
116+
115117 $ traceProperty ->setValue ($ exception , $ trace );
116118 $ exception = $ exception ->getPrevious ();
117119 } while ($ exception !== null );
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ public function testCreationWithErrorContainingClosure() : void
5757 self ::assertSame ('@name Body ' , $ tag ->render ());
5858 self ::assertSame ($ parentException , $ tag ->getException ());
5959 $ trace = $ tag ->getException ()->getPrevious ()->getTrace ();
60+
6061 if (isset ($ trace [0 ]['args ' ])) { // Not set by default on 7.4
6162 self ::assertStringStartsWith ('(Closure at ' , $ trace [0 ]['args ' ][0 ]);
6263 self ::assertStringContainsString (__FILE__ , $ trace [0 ]['args ' ][0 ]);
6364 }
65+
6466 self ::assertEquals ($ parentException , unserialize (serialize ($ parentException )));
6567 }
6668 }
@@ -85,12 +87,14 @@ public function testCreationWithErrorContainingResource() : void
8587 self ::assertSame ('@name Body ' , $ tag ->render ());
8688 self ::assertSame ($ parentException , $ tag ->getException ());
8789 $ trace = $ tag ->getException ()->getPrevious ()->getTrace ();
90+
8891 if (isset ($ trace [0 ]['args ' ])) { // Not set by default on 7.4
8992 self ::assertStringStartsWith (
9093 'resource(stream) ' ,
9194 $ trace [0 ]['args ' ][0 ]
9295 );
9396 }
97+
9498 self ::assertEquals ($ parentException , unserialize (serialize ($ parentException )));
9599 }
96100 }
You can’t perform that action at this time.
0 commit comments