mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
Update IClassLoader.php
Fix 'must be an instance of Closure, array given' error when $closure is a object method.
This commit is contained in:
committed by
GitHub
parent
2a3238f30a
commit
b21feca1fc
@@ -7,6 +7,6 @@ interface IClassLoader
|
||||
|
||||
public function loadClass(string $class);
|
||||
|
||||
public function loadClosure(\Closure $closure, array $parameters);
|
||||
public function loadClosure(Callable $closure, array $parameters);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user