Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #40416 Fix
ConstraintViolation#getMessageTemplate()
to always r…
…eturn `string` (Ocramius) This PR was merged into the 5.2 branch. Discussion ---------- Fix `ConstraintViolation#getMessageTemplate()` to always return `string` | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | `ConstraintViolation#getMessageTemplate()`'s inherited signature states that `string` is to be returned by it at all times, yet the implementation returns `null` when no message template had been provided at instantiation. This patch obviates it, returning an empty string when the message template is `null`. Ref: symfony/symfony#40415 (comment) Commits ------- 72a464e449 Fix `ConstraintViolation#getMessageTemplate()` to always return `string`
- Loading branch information