add_shortcut() only accepts 2 arguments/parameters
add_shortcode( string $tag, callable $callback );
Tutorial has 4 arguments
foreach ( $this->shortcodes as $hook ) {
add_shortcode( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] );
}
add_action(...) or addfilter(...) lines above it were probably copied/pasted which has 4 and changed to add_shortcode( but add_shortcode() only has 2
add_shortcut() only accepts 2 arguments/parameters
Tutorial has 4 arguments
add_action(...) or addfilter(...) lines above it were probably copied/pasted which has 4 and changed to add_shortcode( but add_shortcode() only has 2