Skip to content

Commit 0202bde

Browse files
committed
Callback: deprecated closure()
1 parent 8ba25f0 commit 0202bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Utils/Callback.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ final class Callback
2222

2323
/**
2424
* @param string|object|callable class, object, callable
25+
* @deprecated use Closure::fromCallable()
2526
*/
2627
public static function closure($callable, string $method = null): \Closure
2728
{
@@ -135,7 +136,7 @@ public static function isStatic(callable $callable): bool
135136

136137

137138
/**
138-
* Unwraps closure created by self::closure()
139+
* Unwraps closure created by Closure::fromCallable()
139140
* @internal
140141
*/
141142
public static function unwrap(\Closure $closure): callable

0 commit comments

Comments
 (0)