@@ -25,67 +25,6 @@ function create_function(string $args, string $code): string
25
25
}
26
26
27
27
28
- /**
29
- * Calls a user defined function or method given by the function
30
- * parameter. This function must be called within a method context, it can't be
31
- * used outside a class.
32
- * It uses the late static
33
- * binding.
34
- * All arguments of the forwarded method are passed as values,
35
- * and as an array, similarly to call_user_func_array.
36
- *
37
- * @param callable $function The function or method to be called. This parameter may be an array,
38
- * with the name of the class, and the method, or a string, with a function
39
- * name.
40
- * @param array $parameters One parameter, gathering all the method parameter in one array.
41
- *
42
- * Note that the parameters for forward_static_call_array are
43
- * not passed by reference.
44
- * @return mixed Returns the function result.
45
- * @throws FunchandException
46
- *
47
- */
48
- function forward_static_call_array (callable $ function , array $ parameters )
49
- {
50
- error_clear_last ();
51
- $ result = \forward_static_call_array ($ function , $ parameters );
52
- if ($ result === false ) {
53
- throw FunchandException::createFromPhpError ();
54
- }
55
- return $ result ;
56
- }
57
-
58
-
59
- /**
60
- * Calls a user defined function or method given by the function
61
- * parameter, with the following arguments. This function must be called within a method
62
- * context, it can't be used outside a class.
63
- * It uses the late static
64
- * binding.
65
- *
66
- * @param callable $function The function or method to be called. This parameter may be an array,
67
- * with the name of the class, and the method, or a string, with a function
68
- * name.
69
- * @param mixed $params Zero or more parameters to be passed to the function.
70
- * @return mixed Returns the function result.
71
- * @throws FunchandException
72
- *
73
- */
74
- function forward_static_call (callable $ function , ...$ params )
75
- {
76
- error_clear_last ();
77
- if ($ params !== []) {
78
- $ result = \forward_static_call ($ function , ...$ params );
79
- } else {
80
- $ result = \forward_static_call ($ function );
81
- }
82
- if ($ result === false ) {
83
- throw FunchandException::createFromPhpError ();
84
- }
85
- return $ result ;
86
- }
87
-
88
-
89
28
/**
90
29
*
91
30
*
0 commit comments