diff --git a/README.md b/README.md index 3881bba..5efdaa9 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ extract_inline_img("=7.2", "repat/php-helper": "^0.1.15" }, diff --git a/src/object_helpers.php b/src/object_helpers.php index 56bba98..b6f5a7d 100644 --- a/src/object_helpers.php +++ b/src/object_helpers.php @@ -52,9 +52,9 @@ function cache_get_or_add(string $key, callable $function, ?int $seconds = null) * see https://github.com/laravel/tinker/issues/30 * * @param mixed $job - * @return int + * @return int|string */ - function dispatch_tinker($job) : int + function dispatch_tinker($job) { return app(\Illuminate\Contracts\Bus\Dispatcher::class)->dispatch($job); }