From 42d84796ee1af183c41e25782cea97669e1684e9 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 31 Aug 2023 09:15:05 -0400 Subject: [PATCH] - Optional parameter of Opcache is now fixed --- src/Caching/Opcache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Caching/Opcache.php b/src/Caching/Opcache.php index 924674d..d3591ca 100644 --- a/src/Caching/Opcache.php +++ b/src/Caching/Opcache.php @@ -12,9 +12,9 @@ class Opcache implements Cache { protected array $compiled = []; - protected ? Context $context; + protected null|Context $context; - public function __construct(?string $cachePath = null, ? Context $context) + public function __construct(?string $cachePath = null, null|Context $context = null) { $this->cachePath = $cachePath ?? sys_get_temp_dir(); $this->context = $context;