Req #79628 [PATCH]: Missing filter argument in ReflectionClass::getConstants()
Edit report at https://bugs.php.net/bug.php?id=79628&edit=1
ID: 79628
Patch added by: carusogabriel@php.net
Reported by: enumag at gmail dot com
Summary: Missing filter argument in
ReflectionClass::getConstants()
Status: Assigned
Type: Feature/Change Request
Package: Reflection related
PHP Version: 7.4.6
Assigned To: carusogabriel
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants)
On GitHub: https://github.com/php/php-src/pull/5649
Patch: https://github.com/php/php-src/pull/5649.patch
Previous Comments:
------------------------------------------------------------------------
[2020-05-25 09:42:19] enumag at gmail dot com
Description:
------------
Not that class contants can have visibility, I think that ReflectionClass::getConstants() and
ReflectionClass::getReflectionConstants() should have a filter similar to getMethods and
getProperties().
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79628&edit=1
Thread (3 messages)