File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function __construct()
61
61
/**
62
62
* Execute the command.
63
63
*
64
- * @return void
64
+ * @return int
65
65
*/
66
66
public function handle ()
67
67
{
@@ -72,6 +72,7 @@ public function handle()
72
72
CommandData::$ COMMAND_TYPE_API_SCAFFOLD ,
73
73
])) {
74
74
$ this ->error ('invalid rollback type ' );
75
+ return 1 ;
75
76
}
76
77
77
78
$ this ->commandData = new CommandData ($ this , $ this ->argument ('type ' ));
@@ -90,7 +91,7 @@ public function handle()
90
91
$ this ->composer ->dumpOptimized ();
91
92
$ this ->commandData ->fireEvent ($ type , FileUtil::FILE_DELETED );
92
93
93
- return ;
94
+ return 0 ;
94
95
}
95
96
96
97
$ migrationGenerator = new MigrationGenerator ($ this ->commandData );
@@ -143,6 +144,7 @@ public function handle()
143
144
$ this ->composer ->dumpOptimized ();
144
145
145
146
$ this ->commandData ->fireEvent ($ type , FileUtil::FILE_DELETED );
147
+ return 0 ;
146
148
}
147
149
148
150
/**
You can’t perform that action at this time.
0 commit comments