From 3ee89599ad503c4b0a0653e99858ae66255c8974 Mon Sep 17 00:00:00 2001 From: Bogdan Andronic Date: Tue, 10 Oct 2017 12:38:39 +0300 Subject: [PATCH] Update MakeCommand.php If the path index is missing, assign a default value --- src/Command/MakeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/MakeCommand.php b/src/Command/MakeCommand.php index 1352b00..b1e372e 100644 --- a/src/Command/MakeCommand.php +++ b/src/Command/MakeCommand.php @@ -35,7 +35,7 @@ public function __invoke(Route $route, AdapterInterface $console) $matches = $route->getMatches(); if(!$matches['path']){ - $path = 'data/database/migrations'; + $matches['path'] = 'data/database/migrations'; } if ( ! \is_dir($matches['path'])) {