Req #79628 [PATCH]: Missing filter argument in ReflectionClass::getConstants()

From: Date: Sat, 30 May 2020 22:48:20 +0000
Subject: Req #79628 [PATCH]: Missing filter argument in ReflectionClass::getConstants()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227252@lists.php.net to get a copy of this message
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)

« previous php.bugs (#227252) next »