Skip to content

Commit b6c4815

Browse files
Merge branch '2.14.x' into 1.x
* 2.14.x: [Php 8] Update up to php 8 syntax Fix proxy example in README.md
2 parents 135999c + 0a73ac7 commit b6c4815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ProxyManager/ProxyGenerator/LazyLoadingGhost/MethodGenerator/SetProxyInitializer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace ProxyManager\ProxyGenerator\LazyLoadingGhost\MethodGenerator;
66

7+
use Closure;
78
use Laminas\Code\Generator\ParameterGenerator;
89
use Laminas\Code\Generator\PropertyGenerator;
910
use ProxyManager\Generator\MethodGenerator;
@@ -21,7 +22,7 @@ public function __construct(PropertyGenerator $initializerProperty)
2122
{
2223
parent::__construct(
2324
'setProxyInitializer',
24-
[(new ParameterGenerator('initializer', 'Closure'))->setDefaultValue(null)],
25+
[(new ParameterGenerator('initializer', Closure::class))->setDefaultValue(null)],
2526
self::FLAG_PUBLIC,
2627
'$this->' . $initializerProperty->getName() . ' = $initializer;'
2728
);

0 commit comments

Comments
 (0)