Skip to content

Commit 4ece535

Browse files
committed
Merge branch 'PHP-8.0'
* Fix return type of php_user_filter::onCreate() * Fix return type of mysqli::init() * Fix return type of UConverter::fromUCallback() and UConverter::toUCallback()
2 parents 4baf340 + 54e2ef0 commit 4ece535

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

ext/intl/converter/converter.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function convert(string $str, bool $reverse = false) {}
1111

1212
/**
1313
* @param int $error
14-
* @return string|null
14+
* @return string|int|array|null
1515
*/
1616
public function fromUCallback(int $reason, array $source, int $codePoint, &$error) {}
1717

@@ -59,7 +59,7 @@ public function setSubstChars(string $chars) {}
5959

6060
/**
6161
* @param int $error
62-
* @return string|null
62+
* @return string|int|array|null
6363
*/
6464
public function toUCallback(int $reason, string $source, string $codeUnits, &$error) {}
6565

ext/intl/converter/converter_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: c01b6c9d6a6754a2fffde1279bec3a984e6a2f34 */
2+
* Stub hash: ede345fc0cbc16ca968535b96a93c0479451764e */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_UConverter___construct, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, destination_encoding, IS_STRING, 1, "null")

ext/mysqli/mysqli.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function get_server_info() {}
159159
public function get_warnings() {}
160160

161161
/**
162-
* @return mysqli|false
162+
* @return null|false
163163
*/
164164
public function init() {}
165165

ext/mysqli/mysqli_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: 42fdb807a547cfa3ba35bb2b8a4ee0f0d556a18c */
2+
* Stub hash: 6e22edabfde28f950f79aae189c1b410bb31b785 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
55
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)

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
@@ -15,7 +15,7 @@ class php_user_filter
1515
*/
1616
public function filter($in, $out, &$consumed, bool $closing) {}
1717

18-
/** @return void */
18+
/** @return bool */
1919
public function onCreate() {}
2020

2121
/** @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: d4044dd3037954ce035142577a5476bb2d403c76 */
2+
* Stub hash: 849ca9dc7aa120c1162f75aa43d85049276486a6 */
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)