MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_php_callable_hof

Function is_php_callable_hof

codegraph-kernel/src/php.rs:73–87  ·  view source on GitHub ↗

PHP_CALLABLE_HOFS (function-ref.ts:347).

(name: &str)

Source from the content-addressed store, hash-verified

71
72/// PHP_CALLABLE_HOFS (function-ref.ts:347).
73fn is_php_callable_hof(name: &str) -> bool {
74 matches!(
75 name,
76 "array_map" | "array_filter" | "array_walk" | "array_walk_recursive" | "array_reduce"
77 | "usort" | "uasort" | "uksort"
78 | "array_udiff" | "array_udiff_assoc" | "array_uintersect" | "array_uintersect_assoc"
79 | "call_user_func" | "call_user_func_array"
80 | "forward_static_call" | "forward_static_call_array"
81 | "preg_replace_callback" | "preg_replace_callback_array"
82 | "register_shutdown_function" | "register_tick_function"
83 | "set_error_handler" | "set_exception_handler" | "spl_autoload_register"
84 | "ob_start" | "iterator_apply" | "header_register_callback"
85 | "is_callable"
86 )
87}
88
89/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w`.
90fn ascii_ident_re() -> &'static Regex {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected