VKCOM/kphpstorm

Support FFI types

unserialize opened this issue · 0 comments

The following types in doc types are valid for KPHP:

ffi_cdata<example, union Foo>
ffi_cdata<example, struct Foo>
ffi_cdata<C, void*>
ffi_cdata<C, const int32_t*>
ffi_cdata<vector, struct Vector2f**>

ffi_scope<vector>
ffi_scope<h3>

KPHPStorm should parse them somehow, not to be error-prone, without type hinting. The easiest way is to treat them as 'any'