From 97a024f03598d6d6bfc26a860f4a3d5e2803b779 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 19 Sep 2023 15:19:04 +0200 Subject: chore(3rdparty): remove opis/closure - We are using laravel/serializable-closure for a while now. - The package was there for compatibility reasons but does not play nice with PHP 8.1. Signed-off-by: Daniel Kesselberg --- lib/private/Command/ClosureJob.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/private/Command/ClosureJob.php b/lib/private/Command/ClosureJob.php index 5639852e4db..180c5a33ec5 100644 --- a/lib/private/Command/ClosureJob.php +++ b/lib/private/Command/ClosureJob.php @@ -24,11 +24,10 @@ namespace OC\Command; use OC\BackgroundJob\QueuedJob; use Laravel\SerializableClosure\SerializableClosure as LaravelClosure; -use Opis\Closure\SerializableClosure as OpisClosure; class ClosureJob extends QueuedJob { protected function run($serializedCallable) { - $callable = unserialize($serializedCallable, [LaravelClosure::class, OpisClosure::class]); + $callable = unserialize($serializedCallable, [LaravelClosure::class]); $callable = $callable->getClosure(); if (is_callable($callable)) { $callable(); -- cgit v1.2.3