From 2b0ba0eabcd0da5ee97326e81d293de03e3c6a37 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Sat, 24 Feb 2024 23:36:06 +0100 Subject: [PATCH] Add template path to CompilerException to enable rich debug features (#936) * Add template path to CompilerException to enable rich debug features Fixes #935 --- changelog/935.md | 1 + docs/upgrading.md | 1 + src/Compiler/CodeFrame.php | 2 +- src/Compiler/Template.php | 2 +- src/Template/Source.php | 4 ++-- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 changelog/935.md diff --git a/changelog/935.md b/changelog/935.md new file mode 100644 index 00000000..735a2af9 --- /dev/null +++ b/changelog/935.md @@ -0,0 +1 @@ +- Add template path to CompilerException to enable rich debug features [#935](https://github.com/smarty-php/smarty/issues/935) \ No newline at end of file diff --git a/docs/upgrading.md b/docs/upgrading.md index b538ec9e..ef9cc4c9 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -117,6 +117,7 @@ The following constants have been removed to prevent global side effects. - Smarty now always runs in multibyte mode. Make sure you use the [PHP multibyte extension](https://www.php.net/manual/en/book.mbstring.php) in production for optimal performance. - Generated `