diff --git a/src/Filesystem.php b/src/Filesystem.php index 0c1a97a0a..216a5f7bc 100644 --- a/src/Filesystem.php +++ b/src/Filesystem.php @@ -180,7 +180,7 @@ public function temporaryUrl(string $path, DateTimeInterface $expiresAt, array $ $generator = $this->temporaryUrlGenerator ?: $this->adapter; if ($generator instanceof TemporaryUrlGenerator) { - return $this->temporaryUrlGenerator->temporaryUrl($path, $expiresAt, $this->config->extend($config)); + return $generator->temporaryUrl($path, $expiresAt, $this->config->extend($config)); } throw UnableToGenerateTemporaryUrl::noGeneratorConfigured($path);