ArgumentCountError thrown

Too few arguments to function on_content_gallery(), 1 passed in /home/196541.cloudwaysapps.com/abqxqzzqkj/public_html/wp-includes/class-wp-hook.php on line 287 and at least 2 expected