MCPcopy Create free account
hub / github.com/apache/skywalking-php / validate_num_args

Function validate_num_args

src/execute.rs:279–284  ·  view source on GitHub ↗
(execute_data: &mut ExecuteData, num: usize)

Source from the content-addressed store, hash-verified

277}
278
279pub fn validate_num_args(execute_data: &mut ExecuteData, num: usize) -> anyhow::Result<()> {
280 if execute_data.num_args() < num {
281 bail!("argument count incorrect");
282 }
283 Ok(())
284}
285
286pub fn get_this_mut(execute_data: &mut ExecuteData) -> anyhow::Result<&mut ZObj> {
287 execute_data.get_this_mut().context("$this is empty")

Callers 15

validate_num_argsMethod · 0.85
hook_onMethod · 0.85
hook_handleMethod · 0.85
hook_statusMethod · 0.85
hook_pdo_constructMethod · 0.85
hook_curl_setoptMethod · 0.85
hook_curl_execMethod · 0.85
hook_curl_closeMethod · 0.85
hook_curl_multi_execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected