Skip to content

Commit 59f4da1

Browse files
committed
Fix return type of php_user_filter::onCreate()
1 parent 89fba38 commit 59f4da1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ext/standard/user_filters.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ PHP_METHOD(php_user_filter, filter)
5151
PHP_METHOD(php_user_filter, onCreate)
5252
{
5353
ZEND_PARSE_PARAMETERS_NONE();
54+
55+
RETURN_TRUE;
5456
}
5557

5658
PHP_METHOD(php_user_filter, onClose)

ext/standard/user_filters.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class php_user_filter
1212
*/
1313
public function filter($in, $out, &$consumed, bool $closing) {}
1414

15-
/** @return void */
15+
/** @return bool */
1616
public function onCreate() {}
1717

1818
/** @return void */

ext/standard/user_filters_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: b3876ce9055a9417d0d1db9f97235513740de956 */
2+
* Stub hash: b48d5f26a4f0663a06a274aeba1cfca2e0e80f91 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_php_user_filter_filter, 0, 0, 4)
55
ZEND_ARG_INFO(0, in)

0 commit comments

Comments
 (0)