Skip to content

Commit 2d234d1

Browse files
committed
Declare FFI\CType in namespace
Now that it is supported, declare that CType is part of the FFI namespace, not a freestanding class.
1 parent e0b17ba commit 2d234d1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ext/ffi/ffi.stub.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
/** @generate-function-entries */
44

5+
namespace {
6+
57
final class FFI
68
{
79
public static function cdef(string $code = "", ?string $lib = null): FFI {}
@@ -62,6 +64,12 @@ public static function string(FFI\CData $ptr, ?int $size = null): ?string {}
6264
public static function isNull(FFI\CData $ptr): bool {}
6365
}
6466

67+
}
68+
69+
namespace FFI {
70+
6571
final class CType {
6672
public function getName() : string {}
6773
}
74+
75+
}

ext/ffi/ffi_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: cf08aabbc0e1c50204772ace9285f1c5ef7a22fe */
2+
* Stub hash: 63219df3f7ccf823350d288bf2dfeba5291a3e51 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")

0 commit comments

Comments
 (0)