Improve phpdoc for $extra_elements