Merge pull request #303 from creative-commoners/pulls/3.9/handle-deprecation

FIX Allow deprecated warnings
This commit is contained in:
Maxime Rainville 2021-12-16 11:40:22 +13:00 committed by GitHub
commit 8ac7964220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ abstract class SearchIndex extends ViewableData
$errorHandler = function ($no, $str) { $errorHandler = function ($no, $str) {
throw new Exception('HTML Parse Error: ' . $str); throw new Exception('HTML Parse Error: ' . $str);
}; };
set_error_handler($errorHandler, E_ALL); set_error_handler($errorHandler, E_ALL & ~(E_DEPRECATED | E_USER_DEPRECATED));
try { try {
foreach ($field['lookup_chain'] as $step) { foreach ($field['lookup_chain'] as $step) {