Skip to content

Commit e40752d

Browse files
authored
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
1 parent 87023ae commit e40752d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Registry/CachedRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CachedRegistry implements Registry
3232
*/
3333
private $hashAlgoFunc;
3434

35-
public function __construct(Registry $registry, CacheAdapter $cacheAdapter, callable $hashAlgoFunc = null)
35+
public function __construct(Registry $registry, CacheAdapter $cacheAdapter, ?callable $hashAlgoFunc = null)
3636
{
3737
$this->registry = $registry;
3838
$this->cacheAdapter = $cacheAdapter;

0 commit comments

Comments
 (0)