Skip to content

Commit 09cdeac

Browse files
authored
Fixed fetching classname
1 parent 3425c08 commit 09cdeac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/console/MigrateController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function beforeAction($action)
7070
*/
7171
public function getMigrationNamespace($module)
7272
{
73-
$reflection = new \ReflectionClass($module->class);
73+
$reflection = new \ReflectionClass(get_class($module));
7474
$baseNamespace = $reflection->getNamespaceName() . '\\migrations';
7575
$namespaces = [$baseNamespace];
7676

0 commit comments

Comments
 (0)