Skip to content

Commit 60bfac3

Browse files
committed
Implement Reflector
1 parent dd9fa58 commit 60bfac3

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
@@ -680,7 +680,7 @@ private function __clone(): void {}
680680
private function __construct() {}
681681
}
682682

683-
final class ReflectionAttribute
683+
final class ReflectionAttribute implements Reflector
684684
{
685685
public function getName(): string {}
686686
public function getTarget(): int {}

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: d49e2c64720b5f991ad072778677e38356c678cf */
2+
* Stub hash: 3a424463071c9252fd0b6551d8b6e794f139f8f7 */
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)
@@ -1416,13 +1416,14 @@ static zend_class_entry *register_class_ReflectionReference(void)
14161416
return class_entry;
14171417
}
14181418

1419-
static zend_class_entry *register_class_ReflectionAttribute(void)
1419+
static zend_class_entry *register_class_ReflectionAttribute(zend_class_entry *class_entry_Reflector)
14201420
{
14211421
zend_class_entry ce, *class_entry;
14221422

14231423
INIT_CLASS_ENTRY(ce, "ReflectionAttribute", class_ReflectionAttribute_methods);
14241424
class_entry = zend_register_internal_class_ex(&ce, NULL);
14251425
class_entry->ce_flags |= ZEND_ACC_FINAL;
1426+
zend_class_implements(class_entry, 1, class_entry_Reflector);
14261427

14271428
return class_entry;
14281429
}

0 commit comments

Comments
 (0)