Skip to content

Commit 8030bc0

Browse files
kocsismatekrakjoe
authored andcommitted
Add reproducer for possible issue with object return type inheritance
1 parent 7ec048f commit 8030bc0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ext/reflection/php_reflection.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ public function __toString(): string {}
459459
public function getName() {}
460460

461461
/** @return mixed */
462-
public function getValue() {}
462+
public function getValue(): mixed {}
463463

464464
/** @return bool */
465465
public function isPublic() {}

ext/reflection/php_reflection_arginfo.h

Lines changed: 3 additions & 2 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: 47ac64b027cdeb0e9996147277f79fa9d6b876bd */
2+
* Stub hash: cef133f3196139e48f8ce1ada0994e538503856d */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)
@@ -342,7 +342,8 @@ ZEND_END_ARG_INFO()
342342

343343
#define arginfo_class_ReflectionClassConstant_getName arginfo_class_ReflectionFunctionAbstract_inNamespace
344344

345-
#define arginfo_class_ReflectionClassConstant_getValue arginfo_class_ReflectionFunctionAbstract_inNamespace
345+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ReflectionClassConstant_getValue, 0, 0, IS_MIXED, 0)
346+
ZEND_END_ARG_INFO()
346347

347348
#define arginfo_class_ReflectionClassConstant_isPublic arginfo_class_ReflectionFunctionAbstract_inNamespace
348349

0 commit comments

Comments
 (0)