Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Fix error message when exception is created#17

Merged
weierophinney merged 1 commit intozendframework:masterfrom
GrzegorzDrozd:fix-exception-creation
Jan 16, 2017
Merged

Fix error message when exception is created#17
weierophinney merged 1 commit intozendframework:masterfrom
GrzegorzDrozd:fix-exception-creation

Conversation

@GrzegorzDrozd
Copy link
Contributor

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
Copy link
Member

Maks3w commented Jul 13, 2016

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
Copy link
Member

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

@weierophinney weierophinney self-assigned this Jan 16, 2017
@weierophinney weierophinney added this to the 2.6.1 milestone Jan 16, 2017
@weierophinney weierophinney merged commit 7eb259a into zendframework:master Jan 16, 2017
weierophinney added a commit that referenced this pull request Jan 16, 2017
Fix error message when exception is created
weierophinney added a commit that referenced this pull request Jan 16, 2017
weierophinney added a commit that referenced this pull request Jan 16, 2017
weierophinney added a commit that referenced this pull request Jan 16, 2017
@weierophinney
Copy link
Member

Thanks, @GrzegorzDrozd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants