From f5c7c09d79fbf77c442524b25de2ae000172bc66 Mon Sep 17 00:00:00 2001 From: Vitaliy Ryepnoy Date: Sat, 18 Jun 2016 15:58:14 +1000 Subject: [PATCH] fix for the empty $name issue fix for the empty $name issue, e.g. The [] symbolic link has been removed. --- cli/valet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/valet.php b/cli/valet.php index 3cdd701c8..aaaa278bd 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -108,7 +108,7 @@ * Unlink a link from the Valet links directory. */ $app->command('unlink [name]', function ($name) { - Site::unlink($name ?: basename(getcwd())); + Site::unlink($name = $name ?: basename(getcwd())); info('The ['.$name.'] symbolic link has been removed.'); })->descriptions('Remove the specified Valet link');