Also mute php7 notices for undefined array indexes when muteUndefinedOrNullWarnings is activated. (#829)

Fixes #736
This commit is contained in:
Simon Wisselink
2022-11-23 23:26:24 +01:00
committed by GitHub
parent c02e9e135e
commit 044647bd71
3 changed files with 6 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ class Smarty_Internal_ErrorHandler
}
if ($this->allowUndefinedArrayKeys && preg_match(
'/^(Undefined array key|Trying to access array offset on value of type null)/',
'/^(Undefined index|Undefined array key|Trying to access array offset on value of type null)/',
$errstr
)) {
return; // suppresses this error