From 7feae724be70710336c530169c47be84c1837dc7 Mon Sep 17 00:00:00 2001 From: Lucas Michot Date: Mon, 13 Jun 2016 08:15:18 +0200 Subject: [PATCH] Only iterate through files that contain a namespace. --- src/Illuminate/Foundation/Console/AppNameCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Foundation/Console/AppNameCommand.php b/src/Illuminate/Foundation/Console/AppNameCommand.php index 8ffd83f2a019..111147552c95 100644 --- a/src/Illuminate/Foundation/Console/AppNameCommand.php +++ b/src/Illuminate/Foundation/Console/AppNameCommand.php @@ -95,6 +95,7 @@ protected function setAppDirectoryNamespace() { $files = Finder::create() ->in($this->laravel['path']) + ->contains($this->currentRoot) ->name('*.php'); foreach ($files as $file) {