From c282e475edb82ca1e66751c45897e549806883d0 Mon Sep 17 00:00:00 2001 From: Sophie Roussel Date: Fri, 26 May 2023 15:23:43 +0200 Subject: [PATCH] fix: review --- spec/Gaufrette/Adapter/functions.php | 6 +++--- tests/Gaufrette/Functional/Adapter/AzureBlobStorageTest.php | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/Gaufrette/Adapter/functions.php b/spec/Gaufrette/Adapter/functions.php index 77c68131..bfc06674 100644 --- a/spec/Gaufrette/Adapter/functions.php +++ b/spec/Gaufrette/Adapter/functions.php @@ -30,7 +30,7 @@ function extension_loaded() return $extensionLoaded; } -function opendir() +function opendir(string $url) { return true; } @@ -40,7 +40,7 @@ function apc_fetch(string $path) return sprintf('%s content', $path); } -function apc_store(string $path) +function apc_store(string $path, mixed $content, int $ttl) { if ('prefix-apc-test/invalid' === $path) { return false; @@ -58,7 +58,7 @@ function apc_delete(string $path) return true; } -function apc_exists(string $path) +function apc_exists(mixed $path) { if ('prefix-apc-test/invalid' === $path) { return false; diff --git a/tests/Gaufrette/Functional/Adapter/AzureBlobStorageTest.php b/tests/Gaufrette/Functional/Adapter/AzureBlobStorageTest.php index 521c2d22..d21c01ed 100644 --- a/tests/Gaufrette/Functional/Adapter/AzureBlobStorageTest.php +++ b/tests/Gaufrette/Functional/Adapter/AzureBlobStorageTest.php @@ -12,10 +12,9 @@ */ class AzureBlobStorageTest extends FunctionalTestCase { - /** @var string Name of the Azure container used */ + /** Name of the Azure container used */ private string $container; - /** @var AzureBlobStorage */ private AzureBlobStorage $adapter; protected function setUp(): void