[php-src] Issue #8943: Reflection::getModifierNames() with readonly modifier

From: Date: Thu, 07 Jul 2022 06:06:36 +0000
Subject: [php-src] Issue #8943: Reflection::getModifierNames() with readonly modifier
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241876@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8943 Author: adoy ### Description The following code: ```php <?php var_dump(Reflection::getModifierNames(ReflectionProperty::IS_READONLY)); ``` Resulted in this output: ``` array(0) { } ``` But I expected this output instead: ``` array(1) { [0]=> string(8) "readonly" } ``` ### PHP Version PHP 8.1 ### Operating System _No response_

« previous php.bugs (#241876) next »