Skip to content

Commit

Permalink
Fix dispatch_tinker & dependabot alert
Browse files Browse the repository at this point in the history
  • Loading branch information
repat committed Jun 13, 2021
1 parent 733eb95 commit d5cd44e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -269,7 +269,7 @@ extract_inline_img("<img src='data:image/jpeg;base64,...>", '/var/www/htdocs/lar
## Version
* Version 0.3.1
* Version 0.3.2
## Contact
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -4,12 +4,12 @@
"keywords": ["laravel", "helper", "files", "array", "database", "strings", "date"],
"homepage": "https://repat.de",
"license": "MIT",
"version" : "0.3.1",
"version" : "0.3.2",
"authors": [
{"name": "repat", "email": "repat@repat.de"}
],
"require": {
"illuminate/database": "5.*|6.*|7.*|8.*",
"illuminate/database": "5.*|^6.20.26|7.*|8.*",
"php": ">=7.2",
"repat/php-helper": "^0.1.15"
},
Expand Down
4 changes: 2 additions & 2 deletions src/object_helpers.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit d5cd44e

Please sign in to comment.