| @@ -9,10 +9,10 @@ | ||
| 9 | 9 | namespace VXM\Async; | 
| 10 | 10 | |
| 11 | 11 | use Closure; | 
| 12 | +use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; | |
| 12 | 13 | use Illuminate\Support\Str; | 
| 13 | 14 | use Spatie\Async\Process\Runnable; | 
| 14 | 15 | use VXM\Async\Runtime\ParentRuntime; | 
| 15 | -use Illuminate\Contracts\Events\Dispatcher as EventDispatcher; | |
| 16 | 16 | |
| 17 | 17 | /** | 
| 18 | 18 | * @author Vuong Minh <[email protected]> | 
| @@ -83,9 +83,9 @@ discard block | ||
| 83 | 83 | /** | 
| 84 | 84 | * Make async job. | 
| 85 | 85 | * | 
| 86 | - * @param $job | |
| 86 | + * @param callable $job | |
| 87 | 87 | * | 
| 88 | - * @return mixed | |
| 88 | + * @return callable | |
| 89 | 89 | */ | 
| 90 | 90 | protected function makeJob($job) | 
| 91 | 91 |      { | 
| @@ -131,7 +131,7 @@ discard block | ||
| 131 | 131 | * @param string $event | 
| 132 | 132 | * @param Runnable $process | 
| 133 | 133 | * | 
| 134 | - * @return callable | |
| 134 | + * @return Closure | |
| 135 | 135 | */ | 
| 136 | 136 | protected function makeProcessListener(string $event, Runnable $process): callable | 
| 137 | 137 |      { |