[php-src] master: Fix inline documentation of `Reflection*::getModifiers()` methods
Daniel Scherzer <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Daniel Scherzer (DanielEScherzer)
Date: 2026-07-07T10:33:39-07:00
Commit: https://github.com/php/php-src/commit/ff3947756473ed5c813018dd8d363944d34beec5
Raw diff: https://github.com/php/php-src/commit/ff3947756473ed5c813018dd8d363944d34beec5.diff
Fix inline documentation of `Reflection*::getModifiers()` methods
Affected methods:
* `ReflectionMethod::getModifiers()`
* `ReflectionClassConstant::getModifiers()`
* `ReflectionClass::getModifiers()`
* `ReflectionProperty::getModifiers()`
They were all documented bitfields of "access modifiers", however they all
included modifiers unrelated to visibility/access.
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 6fdf038bd140..be0446e2302a 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3735,7 +3735,7 @@ ZEND_METHOD(ReflectionMethod, isDestructor)
}
/* }}} */
-/* {{{ Returns a bitfield of the access modifiers for this method */
+/* {{{ Returns a bitfield of the modifiers for this method */
ZEND_METHOD(ReflectionMethod, getModifiers)
{
reflection_object *intern;
@@ -3959,7 +3959,7 @@ ZEND_METHOD(ReflectionClassConstant, isFinal)
_class_constant_check_flag(INTERNAL_FUNCTION_PARAM_PASSTHRU, ZEND_ACC_FINAL);
}
-/* {{{ Returns a bitfield of the access modifiers for this constant */
+/* {{{ Returns a bitfield of the modifiers for this constant */
ZEND_METHOD(ReflectionClassConstant, getModifiers)
{
reflection_object *intern;
@@ -4965,7 +4965,7 @@ ZEND_METHOD(ReflectionClass, isAbstract)
}
/* }}} */
-/* {{{ Returns a bitfield of the access modifiers for this class */
+/* {{{ Returns a bitfield of the modifiers for this class */
ZEND_METHOD(ReflectionClass, getModifiers)
{
reflection_object *intern;
@@ -5865,7 +5865,7 @@ ZEND_METHOD(ReflectionProperty, isPromoted)
}
/* }}} */
-/* {{{ Returns a bitfield of the access modifiers for this property */
+/* {{{ Returns a bitfield of the modifiers for this property */
ZEND_METHOD(ReflectionProperty, getModifiers)
{
reflection_object *intern;