runkit7_function_redefine Replace a function definition with a new implementation &reftitle.description; boolrunkit7_function_redefine stringfunction_name stringargument_list stringcode boolreturn_by_reference&null; stringdoc_comment&null; stringreturn_type boolis_strict boolrunkit7_function_redefine stringfunction_name Closureclosure stringdoc_comment&null; stringreturn_type boolis_strict ¬e.runkit.internal-override; &reftitle.parameters; function_name Name of function to redefine argument_list New list of arguments to be accepted by function code New code implementation closure A closure that defines the function. return_by_reference Whether the function should return by reference. doc_comment The doc comment of the function. return_type The return type of the function. is_strict Whether the function behaves as if it was declared in a file with strict_types=1 &reftitle.returnvalues; &return.success; &reftitle.examples; A <function>runkit7_function_redefine</function> example ]]> &example.outputs; &reftitle.seealso; runkit7_function_add runkit7_function_copy runkit7_function_rename runkit7_function_remove runkit7_method_redefine