zendframework / zend-mime

Mime component from Zend Framework
BSD 3-Clause "New" or "Revised" License
62 stars 37 forks source link

Fix error message when exception is created #17

Closed GrzegorzDrozd closed 7 years ago

GrzegorzDrozd commented 8 years ago

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

Maks3w commented 8 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.

weierophinney commented 7 years ago

The patch as provided is incorrect, and will result in errors when resources and objects are provided. I'll fix that on merge.

weierophinney commented 7 years ago

Thanks, @GrzegorzDrozd