diff --git a/src/LocalCacheProvider.php b/src/LocalCacheProvider.php index 3f29a1d..e8acdba 100644 --- a/src/LocalCacheProvider.php +++ b/src/LocalCacheProvider.php @@ -22,10 +22,12 @@ { private string $cacheDir; - #[CacheDir('cacheDir')] - #[CacheNamespace('namespace')] - public function __construct(string $cacheDir = '', private string $namespace = '') - { + public function __construct( + #[CacheDir] + string $cacheDir = '', + #[CacheNamespace] + private string $namespace = '', + ) { $this->cacheDir = $cacheDir ?: sys_get_temp_dir(); } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9d90486..174d7fd 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,10 +1,3 @@ = 8) { - ServiceLocator::setReader(new AttributeReader()); -}