-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Fix math expression error verbosity
Prevents seeing the “non-numeric value encountered” error from PHP when a template attempts to do math on a variable that is not declared, or does not have the right type. See code comments for exact behavior. The intention is to match PHP type coercion as close as possible - among other things by inferring NULL as value when a variable is most likely not defined.
- Loading branch information
1 parent
9726683
commit dc99f18
Showing
2 changed files
with
66 additions
and
13 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