Closed GrzegorzDrozd closed 7 years ago
Please add a test because if the value is not string will be difficult to be casted to string for render the error message.
I think the exception message should be changed anyway.
The patch as provided is incorrect, and will result in errors when resources and objects are provided. I'll fix that on merge.
Thanks, @GrzegorzDrozd
This fixes the following error message:
Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) /vendor/zendframework/zend-mime/src/Part.php on line 271