Skip to content

Commit a8151fc

Browse files
committed
Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost()
Closes GH-16758
1 parent 382be92 commit a8151fc

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ PHP NEWS
1717
- PDO:
1818
. Fixed memory leak of `setFetchMode()`. (SakiTakamachi)
1919

20+
- Reflection:
21+
. Fixed the name of the second parameter of
22+
ReflectionClass::resetAsLazyGhost(). (Arnaud)
23+
2024
- Standard:
2125
. Fixed parameter names of fpow() to be identical to pow(). (Girgias)
2226

ext/reflection/php_reflection.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public function newLazyGhost(callable $initializer, int $options = 0): object {}
380380

381381
public function newLazyProxy(callable $factory, int $options = 0): object {}
382382

383-
public function resetAsLazyGhost(object $object, callable $factory, int $options = 0): void {}
383+
public function resetAsLazyGhost(object $object, callable $initializer, int $options = 0): void {}
384384

385385
public function resetAsLazyProxy(object $object, callable $factory, int $options = 0): void {}
386386

ext/reflection/php_reflection_arginfo.h

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/reflection/tests/ReflectionClass_toString_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle
354354

355355
- Parameters [3] {
356356
Parameter #0 [ <required> object $object ]
357-
Parameter #1 [ <required> callable $factory ]
357+
Parameter #1 [ <required> callable $initializer ]
358358
Parameter #2 [ <optional> int $options = 0 ]
359359
}
360360
- Return [ void ]

0 commit comments

Comments
 (0)