ArgumentCountError thrown

Too few arguments to function ampforwp_gallery_shortcode_markup_modify(), 2 passed in /home2/escenari/public_html/wp-includes/class-wp-hook.php on line 292 and exactly 3 expected