summaryrefslogtreecommitdiff
path: root/src/Debug.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-20 15:35:49 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-20 15:35:49 +0100
commitd1b0b7c2e2c2a21da6282bc772fdd312ccf2ed52 (patch)
tree6a47d8c1ec802212d566e5e3fd145a1a4df8a466 /src/Debug.php
parentc46f0d990ac840fc48d59c6cbc119664d56a7dca (diff)
downloadsmarty-master.tar.gz
smarty-master.tar.bz2
smarty-master.zip
Suppress E_DEPRECATED warnings for PHP 8.x compatibilityHEADmaster
- 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/Debug.php')
-rw-r--r--src/Debug.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Debug.php b/src/Debug.php
index ab1a8877..732423f9 100644
--- a/src/Debug.php
+++ b/src/Debug.php
@@ -198,7 +198,7 @@ class Debug extends Data
$debObj->security_policy = null;
$debObj->debugging = false;
$debObj->debugging_ctrl = 'NONE';
- $debObj->error_reporting = E_ALL & ~E_NOTICE;
+ $debObj->error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE;
$debObj->debug_tpl = $smarty->debug_tpl ?? 'file:' . __DIR__ . '/debug.tpl';
$debObj->registered_resources = array();
$debObj->escape_html = true;