File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -183,5 +183,7 @@ jobs:
183
183
needs : [setup, phpunit]
184
184
steps :
185
185
- uses : actions/checkout@master
186
+ - name : fetch tags
187
+ run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
186
188
- name : BC Check
187
189
uses : docker://nyholm/roave-bc-check-ga
Original file line number Diff line number Diff line change @@ -107,11 +107,13 @@ static function (&$value) : void {
107
107
$ trace = array_map (
108
108
static function (array $ call ) use ($ flatten ) : array {
109
109
array_walk_recursive ($ call ['args ' ], $ flatten );
110
+
110
111
return $ call ;
111
112
},
112
113
$ trace
113
114
);
114
115
}
116
+
115
117
$ traceProperty ->setValue ($ exception , $ trace );
116
118
$ exception = $ exception ->getPrevious ();
117
119
} while ($ exception !== null );
Original file line number Diff line number Diff line change @@ -57,10 +57,12 @@ public function testCreationWithErrorContainingClosure() : void
57
57
self ::assertSame ('@name Body ' , $ tag ->render ());
58
58
self ::assertSame ($ parentException , $ tag ->getException ());
59
59
$ trace = $ tag ->getException ()->getPrevious ()->getTrace ();
60
+
60
61
if (isset ($ trace [0 ]['args ' ])) { // Not set by default on 7.4
61
62
self ::assertStringStartsWith ('(Closure at ' , $ trace [0 ]['args ' ][0 ]);
62
63
self ::assertStringContainsString (__FILE__ , $ trace [0 ]['args ' ][0 ]);
63
64
}
65
+
64
66
self ::assertEquals ($ parentException , unserialize (serialize ($ parentException )));
65
67
}
66
68
}
@@ -85,12 +87,14 @@ public function testCreationWithErrorContainingResource() : void
85
87
self ::assertSame ('@name Body ' , $ tag ->render ());
86
88
self ::assertSame ($ parentException , $ tag ->getException ());
87
89
$ trace = $ tag ->getException ()->getPrevious ()->getTrace ();
90
+
88
91
if (isset ($ trace [0 ]['args ' ])) { // Not set by default on 7.4
89
92
self ::assertStringStartsWith (
90
93
'resource(stream) ' ,
91
94
$ trace [0 ]['args ' ][0 ]
92
95
);
93
96
}
97
+
94
98
self ::assertEquals ($ parentException , unserialize (serialize ($ parentException )));
95
99
}
96
100
}
You can’t perform that action at this time.
0 commit comments