We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04fdcc5 + e594d08 commit 3f75c88Copy full SHA for 3f75c88
src/ProxyConnector.php
@@ -253,13 +253,19 @@ public function connect($uri)
253
$r = new \ReflectionProperty('Exception', 'trace');
254
$r->setAccessible(true);
255
$trace = $r->getValue($e);
256
+
257
+ // Exception trace arguments are not available on some PHP 7.4 installs
258
+ // @codeCoverageIgnoreStart
259
foreach ($trace as &$one) {
- foreach ($one['args'] as &$arg) {
- if ($arg instanceof \Closure) {
- $arg = 'Object(' . get_class($arg) . ')';
260
+ if (isset($one['args'])) {
261
+ foreach ($one['args'] as &$arg) {
262
+ if ($arg instanceof \Closure) {
263
+ $arg = 'Object(' . get_class($arg) . ')';
264
+ }
265
}
266
267
268
+ // @codeCoverageIgnoreEnd
269
$r->setValue($e, $trace);
270
});
271
0 commit comments