$this->resourceCheckers = iterator_to_array($this->resourceCheckers);
}
- if (!count($this->resourceCheckers)) {
+ if (!\count($this->resourceCheckers)) {
return true; // shortcut - if we don't have any checkers we don't need to bother with the meta file at all
}
}
}
- if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
+ if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) {
@opcache_invalidate($this->file, true);
}
}