Skip to content

Commit fccb727

Browse files
committed
Do not verify the signature of ReflectionEnumUnitCase::getValue()
This method legally have a different return type (UnitEnum) from its parent's return type (mixed).
1 parent b4b848b commit fccb727

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ext/reflection/php_reflection.stub.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,10 @@ public function __construct(object|string $class, string $constant) {}
714714

715715
public function getEnum(): ReflectionEnum {}
716716

717-
/** @implementation-alias ReflectionClassConstant::getValue */
717+
/**
718+
* @implementation-alias ReflectionClassConstant::getValue
719+
* @no-verify
720+
*/
718721
public function getValue(): UnitEnum {}
719722
}
720723

ext/reflection/php_reflection_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: 996c7ac01bc70740a1b50dbcc3d444c49f40a933 */
2+
* Stub hash: b7cb399903fb1965ba6294c4dcf9364539e93b5b */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0)
55
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)

0 commit comments

Comments
 (0)