MCPcopy Create free account
hub / github.com/VKCOM/kphp / check_class_defined

Function check_class_defined

compiler/pipes/instantiate-ffi-operations.cpp:35–39  ·  view source on GitHub ↗

since FFI ops preprocessing happens after phpdoc parsing, we won't get "undefined class" errors for invalid FFI type strings that refer to some class; this functions doesn't cover all cases like T* and other FFI type hints, but it catches some simple errors to avoid compiler crashes; TODO: revisit this later, we need to consolidate undefined classes checking

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ffi_cast_implFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected