Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants) #5649

Closed
wants to merge 2 commits into from
Closed

Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants) #5649

wants to merge 2 commits into from

Commits on May 30, 2020

  1. Configuration menu
    Copy the full SHA
    575b05b View commit details
    Browse the repository at this point in the history
  2. Add $filter parameter for ReflectionClass::(getConstants|getReflectio…

    …nConstants)
    
    This solves [#79628](https://bugs.php.net/79628).
    
    Similar to `ReflectionClass::getMethods()` and `ReflectionClass::getProperties()`,
    this new `$filter` argument allows the filtering of constants defined in a class by
    their visibility.
    
    For that, we create three new constants for `ReflectionClassConstant`:
    
      * `IS_PUBLIC`
      * `IS_PROTECTED`
      * `IS_PRIVATE`
    carusogabriel committed May 30, 2020
    Configuration menu
    Copy the full SHA
    33d15b2 View commit details
    Browse the repository at this point in the history