Update to use laravel/serializable-closure (#29)

This commit is contained in:
Owen Voke 2022-02-03 12:04:51 +00:00 committed by GitHub
parent cd73d841d7
commit 221ee7cc8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ composer require amphp/parallel-functions
## Requirements
- PHP 7.0+
- PHP 7.4+
## Documentation

View File

@ -26,7 +26,7 @@
"php": ">=7.4",
"amphp/parallel": "^1.1",
"amphp/amp": "^2.0.3",
"opis/closure": "^3.0.7"
"laravel/serializable-closure": "^1.0"
},
"require-dev": {
"amphp/php-cs-fixer-config": "v2.x-dev",

View File

@ -6,7 +6,7 @@ use Amp\MultiReasonException;
use Amp\Parallel\Sync\SerializationException;
use Amp\Parallel\Worker\Pool;
use Amp\Promise;
use Opis\Closure\SerializableClosure;
use Laravel\SerializableClosure\SerializableClosure;
use function Amp\call;
use function Amp\Parallel\Worker\enqueue;
use function Amp\Promise\any;