Skip to content

Commit

Permalink
Merge pull request #1011 from doctrine/fix-nullable
Browse files Browse the repository at this point in the history
Generate explicit nullable types for proxies
  • Loading branch information
nicolas-grekas committed Apr 16, 2024
2 parents 0a357f1 + 436543d commit 0aad4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Proxy/ProxyGenerator.php
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 0aad4b7

Please sign in to comment.