We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 135999c + 0a73ac7 commit b6c4815Copy full SHA for b6c4815
src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/SetProxyInitializer.php
@@ -4,6 +4,7 @@
4
5
namespace ProxyManager\ProxyGenerator\LazyLoadingGhost\MethodGenerator;
6
7
+use Closure;
8
use Laminas\Code\Generator\ParameterGenerator;
9
use Laminas\Code\Generator\PropertyGenerator;
10
use ProxyManager\Generator\MethodGenerator;
@@ -21,7 +22,7 @@ public function __construct(PropertyGenerator $initializerProperty)
21
22
{
23
parent::__construct(
24
'setProxyInitializer',
- [(new ParameterGenerator('initializer', 'Closure'))->setDefaultValue(null)],
25
+ [(new ParameterGenerator('initializer', Closure::class))->setDefaultValue(null)],
26
self::FLAG_PUBLIC,
27
'$this->' . $initializerProperty->getName() . ' = $initializer;'
28
);
0 commit comments