Fixes a bug that produced a notice in PHP 8.1.
Changes since 7.x-3.0-alpha1:
views_invalidate_cache()
Changes since 7.x-1.90: