Skip to content

Commit d011cb6

Browse files
committed
fix return type
1 parent 8f6a330 commit d011cb6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

memprof.stub.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77

88
function memprof_enabled(): bool {}
99

10+
/**
11+
* @return array{enabled: bool, native: bool, dump_on_limit: bool}
12+
*/
1013
function memprof_enabled_flags(): array {}
1114

1215
function memprof_enable(): bool {}
1316

1417
function memprof_disable(): bool {}
1518

16-
function memprof_dump_array(): void {}
19+
function memprof_dump_array(): array {}
1720

1821
/**
1922
* @param resource $handle

memprof_arginfo.h

Lines changed: 2 additions & 3 deletions
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: ce1c6e7b3be72716852657a9976e6c38c2af6722 */
2+
* Stub hash: 2ccb0e0939a9f13919125dd80717932d2737a359 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_memprof_enabled, 0, 0, _IS_BOOL, 0)
55
ZEND_END_ARG_INFO()
@@ -11,8 +11,7 @@ ZEND_END_ARG_INFO()
1111

1212
#define arginfo_memprof_disable arginfo_memprof_enabled
1313

14-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_memprof_dump_array, 0, 0, IS_VOID, 0)
15-
ZEND_END_ARG_INFO()
14+
#define arginfo_memprof_dump_array arginfo_memprof_enabled_flags
1615

1716
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_memprof_dump_callgrind, 0, 1, IS_VOID, 0)
1817
ZEND_ARG_INFO(0, handle)

memprof_legacy_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: ce1c6e7b3be72716852657a9976e6c38c2af6722 */
2+
* Stub hash: 2ccb0e0939a9f13919125dd80717932d2737a359 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_memprof_enabled, 0, 0, 0)
55
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)