The doc comment class-string<Throwable>[] at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<Throwable>[].
Loading history...
15
*/
16
10
public function __construct(
17
public readonly array $exceptions,
18
public readonly Renderer $renderer
19
) {
20
10
}
21
22
9
public function matches(Throwable $exception): bool
23
{
24
9
foreach ($this->exceptions as $exceptionEntry) {
25
9
if ($exception::class === $exceptionEntry) {
26
5
return true;
27
}
28
29
4
if (is_subclass_of($exception::class, $exceptionEntry)) {