From 6c099d3b148a43677b8505891cdbd74b7a976d2a Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 16 Apr 2024 22:14:06 +0200 Subject: [PATCH] explicitly mark nullable parameters as nullable --- src/Proxy/ProxyGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Proxy/ProxyGenerator.php b/src/Proxy/ProxyGenerator.php index 8019d418f..ec6fb1004 100644 --- a/src/Proxy/ProxyGenerator.php +++ b/src/Proxy/ProxyGenerator.php @@ -201,7 +201,7 @@ public function __setInitialized($initialized): void * {@inheritDoc} * @internal generated method: use only when explicitly handling proxy specific loading logic */ - public function __setInitializer(\Closure $initializer = null): void + public function __setInitializer(?\Closure $initializer = null): void { $this->__initializer__ = $initializer; } @@ -219,7 +219,7 @@ public function __getInitializer(): ?\Closure * {@inheritDoc} * @internal generated method: use only when explicitly handling proxy specific loading logic */ - public function __setCloner(\Closure $cloner = null): void + public function __setCloner(?\Closure $cloner = null): void { $this->__cloner__ = $cloner; }