Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit d9cb1e7

Browse files
author
Seif Kamal
committed
Accept any Throwable as validation error reason
1 parent 15f3f17 commit d9cb1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exception/StructValidationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class StructValidationException extends \Exception
88
{
9-
public function __construct(Struct $struct, \Exception $reason)
9+
public function __construct(Struct $struct, \Throwable $reason)
1010
{
1111
parent::__construct(
1212
"Struct '{$struct->name()}' failed validation: {$reason->getMessage()}",

0 commit comments

Comments
 (0)