-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Consistent return types for condition-based ViewHelpers
In most cases, condition-based ViewHelpers already return an empty string as default value, for example if the verdict is false and else is not set. However, there are a few cases where `null` would be returned instead, which would in the template implicitly converted to an empty string in the vast majority of cases anyway. This change makes sure that all closures or direct ViewHelper node evaluations default to an empty string if `null` is returned, making the behavior consistent to other code paths where an empty string is returned explicitly.
- Loading branch information
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters