diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index 3b65ac304..e9736c007 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -93,7 +93,7 @@ class Filesystem */ public function removeDirectory($directory) { - if (file_exists($dir) && is_link($directory)) { + if (file_exists($directory) && is_link($directory)) { return unlink($directory); }