From f382e5609803f67f968feaa7b2c4a02967e82316 Mon Sep 17 00:00:00 2001 From: ildyria Date: Fri, 12 Apr 2024 21:06:11 +0200 Subject: [PATCH] fix phpstan --- app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php b/app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php index 76caf361c0c..d475d68a05f 100644 --- a/app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php +++ b/app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php @@ -21,7 +21,7 @@ public function handle(PhotoDTO $state, \Closure $next): PhotoDTO if (Features::active('use-s3')) { $sync = Configs::getValueAsBool('use_job_queues'); - $jobs = $state->photo->size_variants->toCollection() + $jobs = $state->getPhoto()->size_variants->toCollection() ->filter(fn ($v) => $v !== null) ->map(fn (SizeVariant $variant) => new UploadSizeVariantToS3Job($variant));