From 198d1735365908c4732b155ba874c2b033cd5fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoander=20Vald=C3=A9s=20Rodr=C3=ADguez?= Date: Fri, 25 May 2012 16:31:48 -0400 Subject: [PATCH] Initializing the repositories vas as empty array instead of null --- lib/Git/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()) {