]> granicus.if.org Git - php/commitdiff
Reflection param renames amendment
authorMáté Kocsis <kocsismate@woohoolabs.com>
Mon, 28 Sep 2020 21:02:42 +0000 (23:02 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Tue, 29 Sep 2020 09:04:10 +0000 (11:04 +0200)
Closes GH-6230

ext/reflection/php_reflection.stub.php
ext/reflection/php_reflection_arginfo.h
ext/reflection/tests/parameters_001.phpt

index b150d1831ded5cb7eaaafa7e6f528a192ce57bfb..bd0a6fe0a17796ed0976b563ff44b635f8c4250e 100644 (file)
@@ -194,7 +194,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
     public function getPrototype() {}
 
     /** @return void */
-    public function setAccessible(bool $isAccessible) {}
+    public function setAccessible(bool $accessible) {}
 }
 
 class ReflectionClass implements Reflector
@@ -364,7 +364,7 @@ class ReflectionClass implements Reflector
 
 class ReflectionObject extends ReflectionClass
 {
-    public function __construct(object $argument) {}
+    public function __construct(object $object) {}
 }
 
 class ReflectionProperty implements Reflector
@@ -415,7 +415,7 @@ class ReflectionProperty implements Reflector
     public function getDocComment() {}
 
     /** @return void */
-    public function setAccessible(bool $isAccessible) {}
+    public function setAccessible(bool $accessible) {}
 
     /** @return ReflectionType|null */
     public function getType() {}
@@ -475,7 +475,7 @@ class ReflectionParameter implements Reflector
     final private function __clone() {}
 
     /** @param string|array|object $function */
-    public function __construct($function, int|string $parameter) {}
+    public function __construct($function, int|string $param) {}
 
     public function __toString(): string {}
 
index 5457b14d47003f755d0295a085d91fecc6895e30..bd90c8cb68806446d6f58ecaa2add94860f2a525 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 35e17de0cdf6c11a315f6d10fd711492d1da567c */
+ * Stub hash: f5f4cfeab0e81c2b51bf11dde7b7d40fc87d9cbc */
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 0, 1)
        ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
@@ -144,7 +144,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_class_ReflectionMethod_getPrototype arginfo_class_ReflectionFunctionAbstract___clone
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionMethod_setAccessible, 0, 0, 1)
-       ZEND_ARG_TYPE_INFO(0, isAccessible, _IS_BOOL, 0)
+       ZEND_ARG_TYPE_INFO(0, accessible, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionClass___clone arginfo_class_ReflectionFunctionAbstract___clone
@@ -277,9 +277,7 @@ ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionClass_getAttributes arginfo_class_ReflectionFunctionAbstract_getAttributes
 
-ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionObject___construct, 0, 0, 1)
-       ZEND_ARG_TYPE_INFO(0, argument, IS_OBJECT, 0)
-ZEND_END_ARG_INFO()
+#define arginfo_class_ReflectionObject___construct arginfo_class_ReflectionClass_isInstance
 
 #define arginfo_class_ReflectionProperty___clone arginfo_class_ReflectionFunctionAbstract___clone
 
@@ -363,7 +361,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ReflectionParameter___construct, 0, 0, 2)
        ZEND_ARG_INFO(0, function)
-       ZEND_ARG_TYPE_MASK(0, parameter, MAY_BE_LONG|MAY_BE_STRING, NULL)
+       ZEND_ARG_TYPE_MASK(0, param, MAY_BE_LONG|MAY_BE_STRING, NULL)
 ZEND_END_ARG_INFO()
 
 #define arginfo_class_ReflectionParameter___toString arginfo_class_ReflectionFunction___toString
index 8299a63bf9d6940822dbcd5533120c7016fa49c3..d50d1a1e720ffd7b5ddf7469611eefdaafabcf32 100644 (file)
@@ -39,4 +39,4 @@ int(1)
 bool(false)
 bool(true)
 string(54) "The parameter specified by its name could not be found"
-string(95) "ReflectionParameter::__construct(): Argument #2 ($parameter) must be greater than or equal to 0"
+string(91) "ReflectionParameter::__construct(): Argument #2 ($param) must be greater than or equal to 0"