]> granicus.if.org Git - php/commitdiff
Zend parameter renames amendment
authorMáté Kocsis <kocsismate@woohoolabs.com>
Mon, 28 Sep 2020 20:19:20 +0000 (22:19 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 29 Sep 2020 09:04:09 +0000 (11:04 +0200)
Closes GH-6228

Zend/tests/015.phpt
Zend/tests/exception_handler_004.phpt
Zend/zend_builtin_functions.stub.php
Zend/zend_builtin_functions_arginfo.h
Zend/zend_closures.stub.php
Zend/zend_closures_arginfo.h

index 8c4dd62d397a300b8d0e0c4d3e516c37929d1a4f..d492590bcd920c807d74f49443c81cb471313d44 100644 (file)
@@ -23,8 +23,8 @@ var_dump(trigger_error("error", E_USER_DEPRECATED));
 --EXPECTF--
 Notice: error in %s on line %d
 bool(true)
-trigger_error(): Argument #2 ($error_type) must be one of E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, or E_USER_DEPRECATED
-trigger_error(): Argument #2 ($error_type) must be one of E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, or E_USER_DEPRECATED
+trigger_error(): Argument #2 ($error_level) must be one of E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, or E_USER_DEPRECATED
+trigger_error(): Argument #2 ($error_level) must be one of E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE, or E_USER_DEPRECATED
 
 Warning: error in %s on line %d
 bool(true)
index 9b2ae6933ac0cf4ff726e014c5e161adb38cd684..a9f9e77a59d90b39de907dcf392b94eb71db9765 100644 (file)
@@ -16,5 +16,5 @@ try {
 
 ?>
 --EXPECT--
-set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, function "fo" not found or invalid function name
-set_exception_handler(): Argument #1 ($exception_handler) must be a valid callback or null, class "" not found
+set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, function "fo" not found or invalid function name
+set_exception_handler(): Argument #1 ($callback) must be a valid callback or null, class "" not found
index eaf2ac490a42247a9d5fd9ab68bccf593e2feeb9..6209967b235e88caaa30ab02e0cd8e3a9e8b90c9 100644 (file)
@@ -68,18 +68,18 @@ function get_included_files(): array {}
 /** @alias get_included_files */
 function get_required_files(): array {}
 
-function trigger_error(string $message, int $error_type = E_USER_NOTICE): bool {}
+function trigger_error(string $message, int $error_level = E_USER_NOTICE): bool {}
 
 /** @alias trigger_error */
-function user_error(string $message, int $error_type = E_USER_NOTICE): bool {}
+function user_error(string $message, int $error_level = E_USER_NOTICE): bool {}
 
 /** @return string|array|object|null */
-function set_error_handler(?callable $error_handler, int $error_types = E_ALL) {}
+function set_error_handler(?callable $callback, int $error_levels = E_ALL) {}
 
 function restore_error_handler(): bool {}
 
 /** @return string|array|object|null */
-function set_exception_handler(?callable $exception_handler) {}
+function set_exception_handler(?callable $callback) {}
 
 function restore_exception_handler(): bool {}
 
index d10e2c3d68824f3888dea1f6256f82aba57b237e..d5d2fb91135590c927ebc46fdd06522fedb29ddb 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: fed3b572fbcae7bda87efc377b56e027da12b511 */
+ * Stub hash: 9a77101b93e8584315bf43305830e129d359b033 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
 ZEND_END_ARG_INFO()
@@ -124,21 +124,21 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trigger_error, 0, 1, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
-       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_type, IS_LONG, 0, "E_USER_NOTICE")
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_level, IS_LONG, 0, "E_USER_NOTICE")
 ZEND_END_ARG_INFO()
 
 #define arginfo_user_error arginfo_trigger_error
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_set_error_handler, 0, 0, 1)
-       ZEND_ARG_TYPE_INFO(0, error_handler, IS_CALLABLE, 1)
-       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_types, IS_LONG, 0, "E_ALL")
+       ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_levels, IS_LONG, 0, "E_ALL")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_restore_error_handler, 0, 0, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_set_exception_handler, 0, 0, 1)
-       ZEND_ARG_TYPE_INFO(0, exception_handler, IS_CALLABLE, 1)
+       ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
 ZEND_END_ARG_INFO()
 
 #define arginfo_restore_exception_handler arginfo_restore_error_handler
index 875ee6920350d408084fac1473b991be970b548d..906dedc5cfe9e36f85d2ba744e9fa0ba4bbbd9dd 100644 (file)
@@ -14,7 +14,7 @@ final class Closure
 
     public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
 
-    public function call(object $newThis, mixed ...$arguments): mixed {}
+    public function call(object $newThis, mixed ...$args): mixed {}
 
     public static function fromCallable(callable $callback): Closure {}
 }
index 1a01ab281077193008ad6b5047935caec21ab270..1ccde0d6dd64884226103f240ebbe3f3744cdfa9 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 6c9840dd5c2e4c597cd0133bf2d0b523c272d3fe */
+ * Stub hash: 0a2dd53716d30893aa5dd92a9907b2298abb3f70 */
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Closure___construct, 0, 0, 0)
 ZEND_END_ARG_INFO()
@@ -17,7 +17,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Closure_call, 0, 1, IS_MIXED, 0)
        ZEND_ARG_TYPE_INFO(0, newThis, IS_OBJECT, 0)
-       ZEND_ARG_VARIADIC_TYPE_INFO(0, arguments, IS_MIXED, 0)
+       ZEND_ARG_VARIADIC_TYPE_INFO(0, args, IS_MIXED, 0)
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Closure_fromCallable, 0, 1, Closure, 0)