diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php index 50ea8cc..fefa3bb 100644 --- a/AwsS3V3Adapter.php +++ b/AwsS3V3Adapter.php @@ -417,7 +417,7 @@ public function copy(string $source, string $destination, Config $config): void try { $visibility = $config->get(Config::OPTION_VISIBILITY); - if ($visibility === null && $config->get('retain_visibility', true)) { + if ($visibility === null && $config->get(Config::OPTION_RETAIN_VISIBILITY, true)) { $visibility = $this->visibility($source)->visibility(); } } catch (Throwable $exception) {