Skip to content

Commit b78c535

Browse files
authored
Merge pull request #2754 from spatie/remove-v5-cache-fallback
Remove v5 cache fallback
2 parents 8efe3d4 + e8b97e3 commit b78c535

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/PermissionRegistrar.php

-8
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,6 @@ private function loadPermissions(): void
199199
$this->cacheKey, $this->cacheExpirationTime, fn () => $this->getSerializedPermissionsForCache()
200200
);
201201

202-
// fallback for old cache method, must be removed on next major version
203-
if (! isset($this->permissions['alias'])) {
204-
$this->forgetCachedPermissions();
205-
$this->loadPermissions();
206-
207-
return;
208-
}
209-
210202
$this->alias = $this->permissions['alias'];
211203

212204
$this->hydrateRolesCache();

0 commit comments

Comments
 (0)