Skip to content

Commit 81a2673

Browse files
committed
type hint
1 parent 3b7b006 commit 81a2673

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Assert.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,9 +1947,8 @@ public static function isMap($array, $message = '')
19471947
* @return void
19481948
* @throws InvalidArgumentException
19491949
*/
1950-
public static function isStatic($closure, $message = '')
1950+
public static function isStatic(Closure $closure, $message = '')
19511951
{
1952-
Assert::isCallable($closure);
19531952
$reflection = new ReflectionFunction($closure);
19541953

19551954
if (!$reflection->isStatic()) {
@@ -1965,7 +1964,7 @@ public static function isStatic($closure, $message = '')
19651964
* @return void
19661965
* @throws InvalidArgumentException
19671966
*/
1968-
public static function isNotStatic($closure, $message = '')
1967+
public static function isNotStatic(Closure $closure, $message = '')
19691968
{
19701969
Assert::isCallable($closure);
19711970
$reflection = new ReflectionFunction($closure);

0 commit comments

Comments
 (0)