Commit 36a602b077f for php.net
commit 36a602b077f95d5dadd52e9fd0af0136c4c7e695
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Thu Jul 2 10:48:50 2026 -0700
Update inline documentation of `ReflectionProperty::setAccessible()`
Since PHP 8.1 ReflectionProperty has always allowed access to non-public
properties and the method is a no-op.
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 0eb458fa927..6fdf038bd14 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -6392,7 +6392,7 @@ ZEND_METHOD(ReflectionProperty, getAttributes)
}
/* }}} */
-/* {{{ Sets whether non-public properties can be requested */
+/* {{{ No-op; previously controlled whether non-public properties can be requested */
ZEND_METHOD(ReflectionProperty, setAccessible)
{
bool visible;