From e8b97e350cdf8be233f48470c2172919d7cfc73d Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Mon, 4 Nov 2024 18:43:28 -0500 Subject: [PATCH] Remove v5 cache fallback Ref #1912 --- src/PermissionRegistrar.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/PermissionRegistrar.php b/src/PermissionRegistrar.php index 45d5d223..643ed92e 100644 --- a/src/PermissionRegistrar.php +++ b/src/PermissionRegistrar.php @@ -199,14 +199,6 @@ private function loadPermissions(): void $this->cacheKey, $this->cacheExpirationTime, fn () => $this->getSerializedPermissionsForCache() ); - // fallback for old cache method, must be removed on next major version - if (! isset($this->permissions['alias'])) { - $this->forgetCachedPermissions(); - $this->loadPermissions(); - - return; - } - $this->alias = $this->permissions['alias']; $this->hydrateRolesCache();