func_get_args() cannot be called from the global scope¶
Description¶
func_get_args()
returns the list of arguments used when calling a function or method. As such, it must be inside a function to be useful.
Example¶
<?php
func_get_args();
?>
Solutions¶
Remove func_get_args() calls from the global space (outside any function).
Move the func_get_args() calls inside a function.