Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While not explicitly allowed in the PHPDoc, `e(null)` returns `""` with PHP < 8.1 On PHP >= 8.1, an error is thrown if `null` is passed to `htmlspecialchars`. As `e(null)` is still a common case (for instance via Blade in view templates) I think it's safest to just default the `null` value to an empty string to get the same behavior with the next PHP minor version.
- Loading branch information