From e40752db5e57e5e97b60897a9749cc1f156a4c9c Mon Sep 17 00:00:00 2001 From: Stevan Tosic Date: Wed, 26 Feb 2025 12:05:40 +0100 Subject: [PATCH] Update CachedRegistry.php Fix PHP deprecation error in PHP 8.4: vendor/flix-tech/confluent-schema-registry-api/src/Registry/CachedRegistry.php:35 FlixTech\SchemaRegistryApi\Registry\CachedRegistry::__construct(): Implicitly marking parameter $hashAlgoFunc as nullable is deprecated, the explicit nullable type must be used instead --- src/Registry/CachedRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Registry/CachedRegistry.php b/src/Registry/CachedRegistry.php index 281e193..9b5b507 100644 --- a/src/Registry/CachedRegistry.php +++ b/src/Registry/CachedRegistry.php @@ -32,7 +32,7 @@ class CachedRegistry implements Registry */ private $hashAlgoFunc; - public function __construct(Registry $registry, CacheAdapter $cacheAdapter, callable $hashAlgoFunc = null) + public function __construct(Registry $registry, CacheAdapter $cacheAdapter, ?callable $hashAlgoFunc = null) { $this->registry = $registry; $this->cacheAdapter = $cacheAdapter;