diff --git a/lib/Git/Client.php b/lib/Git/Client.php index e0b650e..aafbca0 100644 --- a/lib/Git/Client.php +++ b/lib/Git/Client.php @@ -65,8 +65,7 @@ class Client { $dir = new \DirectoryIterator($path); - // Good practice defined a variable before using it - $repositories = null; + $repositories = array(); foreach ($dir as $file) { if ($file->isDot()) {