From 70eb2bc7d8d6511f9bfea3d93364aaa711325717 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 26 Feb 2025 16:58:19 +0100 Subject: [PATCH] Remove symlink validity check from symlinkExists() (only check for the symlink's existence) --- src/Concerns/DealsWithTenantSymlinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concerns/DealsWithTenantSymlinks.php b/src/Concerns/DealsWithTenantSymlinks.php index 37984dc8..114eadb5 100644 --- a/src/Concerns/DealsWithTenantSymlinks.php +++ b/src/Concerns/DealsWithTenantSymlinks.php @@ -56,6 +56,6 @@ trait DealsWithTenantSymlinks /** Determine if the provided path is an existing symlink. */ protected function symlinkExists(string $link): bool { - return file_exists($link) && is_link($link); + return is_link($link); } }