Declare FFI\CType in namespace

Now that it is supported, declare that CType is part of the FFI
namespace, not a freestanding class.
This commit is contained in:
Nikita Popov 2020-10-02 17:53:45 +02:00
parent e0b17ba219
commit 2d234d111a
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,8 @@
/** @generate-function-entries */
namespace {
final class FFI
{
public static function cdef(string $code = "", ?string $lib = null): FFI {}
@ -62,6 +64,12 @@ final class FFI
public static function isNull(FFI\CData $ptr): bool {}
}
}
namespace FFI {
final class CType {
public function getName() : string {}
}
}

View File

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: cf08aabbc0e1c50204772ace9285f1c5ef7a22fe */
* Stub hash: 63219df3f7ccf823350d288bf2dfeba5291a3e51 */
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")