Skip to content

Commit a0ea866

Browse files
Support for arrays in the exceptions
1 parent 2ded8d3 commit a0ea866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/BaseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ abstract class BaseException extends Exception
4343
public function __construct($message)
4444
{
4545
if (!is_scalar($message)) {
46-
throw new InternalErrorException('Exception message should be string');
46+
$message = $this->title;
4747
}
4848

4949
parent::__construct($message);

0 commit comments

Comments
 (0)