Skip to content

Commit 47aeadd

Browse files
authored
fix(MigrateLoadCommand): Parenthesize nested ternary. (#13)
* fix(MigrateLoadCommand): Parenthesize nested ternary. * maintenance(.travis.yml): Update PHP versions to include 7.4. * chore(.travis.yml): Changed PHP 7.4 to use a snapshot to work with --prefer-lowest composer. * Revert "chore(.travis.yml): Changed PHP 7.4 to use a snapshot to work with --prefer-lowest composer." This reverts commit 62868f8. * chore(.travis.yml): Comment out prefer-lowest composer matrix entry until it can work with PHP 7.4.
1 parent 3443d64 commit 47aeadd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ php:
44
- 7.1
55
- 7.2
66
- 7.3
7+
- 7.4
78

89
env:
910
matrix:
10-
- COMPOSER_FLAGS="--prefer-lowest"
11+
#- COMPOSER_FLAGS="--prefer-lowest" # Disabled until works w/7.4 (2019-12-04)
1112
- COMPOSER_FLAGS=""
1213

1314
services:

src/Commands/MigrateLoadCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function handle()
4949
$is_dropping = ! ($this->option('no-drop')
5050
? true
5151
// Prefixing with command name since `migrate` may implicitly call.
52-
: env('MIGRATE_LOAD_NO_DROP') ? true : false);
52+
: (env('MIGRATE_LOAD_NO_DROP') ? true : false));
5353

5454
if ($is_dropping) {
5555
\Schema::dropAllViews();

0 commit comments

Comments
 (0)