Skip to content

Commit

Permalink
Fix PHP 7.1 tests
Browse files Browse the repository at this point in the history
Filesystem::missing didn't exist prior to Laravel 6.0, see illuminate/filesystem@197bac1
  • Loading branch information
ifox committed Feb 11, 2020
1 parent 823402a commit 213b2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function twill_put_stub($path, $stub, $fs = null)
$stub
);

if ($fs->missing($path)) {
if (!$fs->exists($path)) {
$fs->put($path, $stub);
}
}
Expand Down

1 comment on commit 213b2c9

@mcylinder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The migration stub is already created at L177 in src/Commands/ModuleMake.php.
So the bolierplate contents in $stub are never added here at L172.
Removing ! at L171 solved the problem. Unsure if that's the best way to address.

Please sign in to comment.