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 65a4d3e + a508a8b commit 94f8051Copy full SHA for 94f8051
src/DocBlock/Tags/InvalidTag.php
@@ -77,7 +77,9 @@ public function withError(Throwable $exception): self
77
private function flattenExceptionBacktrace(Throwable $exception): void
78
{
79
$traceProperty = (new ReflectionClass(Exception::class))->getProperty('trace');
80
- $traceProperty->setAccessible(true);
+ if (PHP_VERSION_ID < 80100) {
81
+ $traceProperty->setAccessible(true);
82
+ }
83
84
do {
85
$trace = $exception->getTrace();
@@ -96,7 +98,9 @@ function (array $call): array {
96
98
$exception = $exception->getPrevious();
97
99
} while ($exception !== null);
100
- $traceProperty->setAccessible(false);
101
102
+ $traceProperty->setAccessible(false);
103
104
}
105
106
/**
0 commit comments