MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / class_has_magic_call

Function class_has_magic_call

internal/cbm/lsp/php_lsp.c:436–439  ·  view source on GitHub ↗

Detect a __call / __callStatic on a class chain. */

Source from the content-addressed store, hash-verified

434
435/* Detect a __call / __callStatic on a class chain. */
436static bool class_has_magic_call(PHPLSPContext *ctx, const char *class_qn, bool is_static) {
437 const char *magic = is_static ? "__callStatic" : "__call";
438 return php_lookup_method(ctx, class_qn, magic) != NULL;
439}
440
441/* ── type parsing ───────────────────────────────────────────────── */
442

Callers 1

resolve_member_callFunction · 0.85

Calls 1

php_lookup_methodFunction · 0.85

Tested by

no test coverage detected