Skip to content

Commit

Permalink
fix(MigrateLoadCommand): Parenthesize nested ternary. (#13)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
paulrrogers authored Dec 4, 2019
1 parent 3443d64 commit 47aeadd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4

env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
#- COMPOSER_FLAGS="--prefer-lowest" # Disabled until works w/7.4 (2019-12-04)
- COMPOSER_FLAGS=""

services:
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/MigrateLoadCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function handle()
$is_dropping = ! ($this->option('no-drop')
? true
// Prefixing with command name since `migrate` may implicitly call.
: env('MIGRATE_LOAD_NO_DROP') ? true : false);
: (env('MIGRATE_LOAD_NO_DROP') ? true : false));

if ($is_dropping) {
\Schema::dropAllViews();
Expand Down

0 comments on commit 47aeadd

Please sign in to comment.