Skip to content

Commit

Permalink
Merge pull request #120 from predakanga/patch-1
Browse files Browse the repository at this point in the history
Update ChainException to support Throwables
  • Loading branch information
florianv committed Nov 26, 2020
2 parents 24821ca + 0ef63e5 commit 6c2347d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exception/ChainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class ChainException extends Exception
*/
public function __construct(array $exceptions)
{
$messages = array_map(function (\Exception $exception) {
$messages = array_map(function (\Throwable $exception) {
return sprintf(
'%s: %s',
get_class($exception),
Expand Down

0 comments on commit 6c2347d

Please sign in to comment.