Skip to content

Commit

Permalink
explicitly mark nullable parameters as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Apr 16, 2024
1 parent 0a357f1 commit 6c099d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Proxy/ProxyGenerator.php
Original file line number Diff line number Diff line change
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 6c099d3

Please sign in to comment.