Skip to content

Commit 0aad4b7

Browse files
Merge pull request #1011 from doctrine/fix-nullable
Generate explicit nullable types for proxies
2 parents 0a357f1 + 436543d commit 0aad4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Proxy/ProxyGenerator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function __setInitialized($initialized): void
201201
* {@inheritDoc}
202202
* @internal generated method: use only when explicitly handling proxy specific loading logic
203203
*/
204-
public function __setInitializer(\Closure $initializer = null): void
204+
public function __setInitializer(?\Closure $initializer = null): void
205205
{
206206
$this->__initializer__ = $initializer;
207207
}
@@ -219,7 +219,7 @@ public function __getInitializer(): ?\Closure
219219
* {@inheritDoc}
220220
* @internal generated method: use only when explicitly handling proxy specific loading logic
221221
*/
222-
public function __setCloner(\Closure $cloner = null): void
222+
public function __setCloner(?\Closure $cloner = null): void
223223
{
224224
$this->__cloner__ = $cloner;
225225
}

0 commit comments

Comments
 (0)