Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Update MakeCommand.php
Browse files Browse the repository at this point in the history
If the path index is missing, assign a default value
  • Loading branch information
bandronic authored Oct 10, 2017
1 parent cd959ec commit 3ee8959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 3ee8959

Please sign in to comment.