diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-20 15:35:49 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-20 15:35:49 +0100 |
| commit | d1b0b7c2e2c2a21da6282bc772fdd312ccf2ed52 (patch) | |
| tree | 6a47d8c1ec802212d566e5e3fd145a1a4df8a466 /src/Smarty.php | |
| parent | c46f0d990ac840fc48d59c6cbc119664d56a7dca (diff) | |
| download | smarty-master.tar.gz smarty-master.tar.bz2 smarty-master.zip | |
- Debug.php, Smarty.php: add ~E_DEPRECATED to error_reporting masks
- DefaultExtension.php: comment out trigger_error for implode deprecation
- libs/Smarty.class.php: minor style cleanup (require_once without parens)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/Smarty.php')
| -rw-r--r-- | src/Smarty.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Smarty.php b/src/Smarty.php index 5665ff45..9bbbdccd 100644 --- a/src/Smarty.php +++ b/src/Smarty.php @@ -1679,7 +1679,7 @@ class Smarty extends \Smarty\TemplateBase { */ public function writeFile($_filepath, $_contents) { $_error_reporting = error_reporting(); - error_reporting($_error_reporting & ~E_NOTICE & ~E_WARNING); + error_reporting($_error_reporting & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING); $_dirpath = dirname($_filepath); // if subdirs, create dir structure if ($_dirpath !== '.') { |
