Skip to content

Commit eb1d07c

Browse files
authored
Unsupported operand types on rollback migration (#362)
When trying to rollback the migrations i got this error TypeError Unsupported operand types: array + bool This commit solves the issue.
1 parent ae7c7d8 commit eb1d07c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public function up()
3939
public function down()
4040
{
4141
Schema::table('users', function (Blueprint $table) {
42-
$table->dropColumn([
42+
$table->dropColumn(array_merge([
4343
'two_factor_secret',
4444
'two_factor_recovery_codes',
45-
] + Fortify::confirmsTwoFactorAuthentication() ? [
45+
], Fortify::confirmsTwoFactorAuthentication() ? [
4646
'two_factor_confirmed_at',
47-
] : []);
47+
] : []));
4848
});
4949
}
5050
};

0 commit comments

Comments
 (0)