diff --git a/src/ShortcodeManager.php b/src/ShortcodeManager.php index d98bbf2..f5e40ea 100644 --- a/src/ShortcodeManager.php +++ b/src/ShortcodeManager.php @@ -380,7 +380,7 @@ public function do_tag( $tag, array $atts = [], $content = null ) { protected function instantiate( $interface, $class, array $args ) { try { if ( is_callable( $class ) ) { - $class = call_user_func_array( $class, $args ); + $class = call_user_func_array( $class, array_values( $args ) ); } if ( is_string( $class ) ) {