Skip to content

Reflection::getModifierNames() with readonly modifier #8943

Closed

Description

@adoy

Description

The following code:

<?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

Activity

  1. added a commit that references this issue on Jul 7, 2022
  2. cmb69 commented on Jul 7, 2022

    @cmb69
    Member

    Yeah, apparently just an oversight.

  3. added 2 commits that reference this issue on Jul 7, 2022
  4. adoy commented on Jul 7, 2022

    @adoy
    MemberAuthor

    Fixed by #8944

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions