Skip to content

Commit 631c6e7

Browse files
committed
Add missing zend_test stubs
1 parent fabe6a3 commit 631c6e7

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

ext/zend_test/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ static ZEND_METHOD(_ZendTestTrait, testMethod) /* {{{ */ {
198198
/* }}} */
199199

200200
static const zend_function_entry zend_test_class_methods[] = {
201-
ZEND_ME(_ZendTestClass, is_object, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
202-
ZEND_ME(_ZendTestClass, __toString, NULL, ZEND_ACC_DEPRECATED)
201+
ZEND_ME(_ZendTestClass, is_object, arginfo_class__ZendTestClass_is_object, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
202+
ZEND_ME(_ZendTestClass, __toString, arginfo_class__ZendTestClass___toString, ZEND_ACC_DEPRECATED)
203203
ZEND_FE_END
204204
};
205205

206206
static const zend_function_entry zend_test_trait_methods[] = {
207-
ZEND_ME(_ZendTestTrait, testMethod, NULL, ZEND_ACC_PUBLIC)
207+
ZEND_ME(_ZendTestTrait, testMethod, arginfo_class__ZendTestTrait_testMethod, ZEND_ACC_PUBLIC)
208208
ZEND_FE_END
209209
};
210210

ext/zend_test/test.stub.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<?php
22

3+
class _ZendTestClass {
4+
public static function is_object(): int;
5+
6+
public function __toString(): string;
7+
}
8+
9+
trait _ZendTestTrait {
10+
public function testMethod(): bool;
11+
}
12+
313
function zend_test_array_return(): array {}
414

515
function zend_test_nullable_array_return(): ?array {}

ext/zend_test/test_arginfo.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/* This is a generated file, edit the .stub.php file instead. */
22

3+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestClass_is_object, 0, 0, IS_LONG, 0)
4+
ZEND_END_ARG_INFO()
5+
6+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestClass___toString, 0, 0, IS_STRING, 0)
7+
ZEND_END_ARG_INFO()
8+
9+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class__ZendTestTrait_testMethod, 0, 0, _IS_BOOL, 0)
10+
ZEND_END_ARG_INFO()
11+
312
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
413
ZEND_END_ARG_INFO()
514

0 commit comments

Comments
 (0)