Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix the name of the initializer parameter of ReflectionClass::resetAsLazyGhost() #16758

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/reflection/php_reflection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public function newLazyGhost(callable $initializer, int $options = 0): object {}

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

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

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

Expand Down
10 changes: 7 additions & 3 deletions ext/reflection/php_reflection_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext/reflection/tests/ReflectionClass_toString_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Class [ <internal:Reflection> class ReflectionClass implements Stringable, Refle

- Parameters [3] {
Parameter #0 [ <required> object $object ]
Parameter #1 [ <required> callable $factory ]
Parameter #1 [ <required> callable $initializer ]
Parameter #2 [ <optional> int $options = 0 ]
}
- Return [ void ]
Expand Down