(PHP 5 >= 5.4.0, PHP 7, PHP 8)
ReflectionFunction::getClosure — Returns a dynamically created closure for the function
public ReflectionFunction::getClosure(): Closure
Get a dynamically created closure for the function.
This function has no parameters.
Returns the newly created Closure.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionfunction.getclosure.php