From 4d867bedd8eeab26a1e8c58a884a6ee9785399d5 Mon Sep 17 00:00:00 2001 From: IanM Date: Fri, 22 Nov 2024 14:24:02 +0000 Subject: [PATCH] resolve phpstan --- src/Driver/Config.php | 2 +- src/Driver/S3Driver.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Driver/Config.php b/src/Driver/Config.php index e5b8c1c..17d69b3 100644 --- a/src/Driver/Config.php +++ b/src/Driver/Config.php @@ -129,7 +129,7 @@ protected function buildConfigFromSettings(): array ); } - protected function getSetting(string $key, ?string $default = null): mixed + protected function getSetting(string $key, mixed $default = null): mixed { $prefix = $this->getSettingsPrefix(); $value = $this->settings->get("$prefix.$key"); diff --git a/src/Driver/S3Driver.php b/src/Driver/S3Driver.php index e1059a2..30d40e0 100644 --- a/src/Driver/S3Driver.php +++ b/src/Driver/S3Driver.php @@ -40,6 +40,7 @@ public function build( array $localConfig ): Cloud { if (empty($this->config->config())) { + // @phpstan-ignore-next-line return $this->manager->createLocalDriver($localConfig); }