We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8094c commit 9a82b60Copy full SHA for 9a82b60
src/Commands/MakeMySqlRepository.php
@@ -92,8 +92,9 @@ public function handle(): int
92
return 0;
93
}
94
95
- if (!file_exists($relativeMysqlRepositoryPath)) {
96
- mkdir($relativeMysqlRepositoryPath);
+ if ( ! file_exists($relativeMysqlRepositoryPath) && ! mkdir($relativeMysqlRepositoryPath) && ! is_dir($relativeMysqlRepositoryPath)) {
+ $this->alert("Directory \"$relativeMysqlRepositoryPath\" was not created");
97
+ return 0;
98
99
100
if (class_exists("$relativeMysqlRepositoryPath\\$mysqlRepositoryName") && !$this->option('force')) {
0 commit comments