Skip to content

Commit

Permalink
Fixed a bug for commands in Artisan CLI Laravel from 5.5 onwards
Browse files Browse the repository at this point in the history
- Add the method handle() as alias of te method fire()
  • Loading branch information
JackieDo committed Dec 10, 2018
1 parent c784f81 commit 10c6b52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ php:
- 5.4
- 5.5
- 5.6
- hhvm

before_script:
- travis_retry composer self-update
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
syntaxCheck="true">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./tests/</directory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@ public function __construct(LogReader $reader)

parent::__construct();
}

/**
* Execute the console command.
* This is alias of the method fire()
*
* @return mixed
*/
public function handle()
{
return $this->fire();
}
}

0 comments on commit 10c6b52

Please sign in to comment.