mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
[FEATURE] php8 compatibility.
- Fixed possible error causing parameters not to be set properly when using partialGroup. - Removed unused import reference. - Added unit-tests.
This commit is contained in:
@@ -31,7 +31,7 @@ class ClassLoader implements IClassLoader
|
||||
*/
|
||||
public function loadClosure(Callable $closure, array $parameters)
|
||||
{
|
||||
return \call_user_func_array($closure, $parameters);
|
||||
return \call_user_func_array($closure, array_values($parameters));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user