[php-src] master: Update inline documentation of `ReflectionProperty::setAccessible()`

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/36a602b077f95d5dadd52e9fd0af0136c4c7e695
Raw diff: https://github.com/php/php-src/commit/36a602b077f95d5dadd52e9fd0af0136c4c7e695.diff

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.

Changed paths:
  M  ext/reflection/php_reflection.c


Diff:

diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 0eb458fa9272..6fdf038bd140 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.