We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cab1464 + b096892 commit 9943b55Copy full SHA for 9943b55
src/Query/RetryExecutor.php
@@ -53,13 +53,19 @@ public function tryQuery(Query $query, $retries)
53
$r = new \ReflectionProperty('Exception', 'trace');
54
$r->setAccessible(true);
55
$trace = $r->getValue($e);
56
+
57
+ // Exception trace arguments are not available on some PHP 7.4 installs
58
+ // @codeCoverageIgnoreStart
59
foreach ($trace as &$one) {
- foreach ($one['args'] as &$arg) {
- if ($arg instanceof \Closure) {
- $arg = 'Object(' . \get_class($arg) . ')';
60
+ if (isset($one['args'])) {
61
+ foreach ($one['args'] as &$arg) {
62
+ if ($arg instanceof \Closure) {
63
+ $arg = 'Object(' . \get_class($arg) . ')';
64
+ }
65
}
66
67
68
+ // @codeCoverageIgnoreEnd
69
$r->setValue($e, $trace);
70
} else {
71
--$retries;
0 commit comments