fixed bool

This commit is contained in:
2026-02-02 11:24:58 -06:00
parent 8ebdcb7d1d
commit bd9f4c074d

View File

@@ -91,7 +91,7 @@ function filter_extensions(array &$pbdb): null {
}
}
function blacklist_terms(array &$pbdb): null {
function blacklist_terms(array &$pbdb): bool {
global $BLACKLISTED_TERMS;
$pbdb = array_values(array_filter($pbdb, function ($item) use ($BLACKLISTED_TERMS) {
@@ -110,7 +110,7 @@ function blacklist_terms(array &$pbdb): null {
}));
}
function whitelist_extension_filter(array &$pbdb): null {
function whitelist_extension_filter(array &$pbdb): bool {
global $EXTENSION_FILTER_LIST;
$allowed = array_fill_keys(