must be a valid method name¶
Description¶
The ReflectionMethod requires a method name to be instantiated. It is recommended to specify it with 2 arguments, the first being the class, or one of its objects, and the second being the method name.
When only one argument is provided, the string must have the class::method
format.
Example¶
<?php
$method = new ReflectionMethod('c');
?>
Solutions¶
Use two arguments to call this method.
Use the correct format to reprsent a method in a string.