Skip to content

Commit 3a511f6

Browse files
authored
Fixed bug that Hyperf\Database\Migrations\Migrator::reset() cannot support string paths. (#7449)
1 parent fe2bdef commit 3a511f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Migrations/Migrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function reset(array|string $paths = [], bool $pretend = false): array
157157
return [];
158158
}
159159

160-
return $this->resetMigrations($migrations, $paths, $pretend);
160+
return $this->resetMigrations($migrations, Arr::wrap($paths), $pretend);
161161
}
162162

163163
/**

0 commit comments

Comments
 (0)