Nothing Special   »   [go: up one dir, main page]

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

Reflection::getModifierNames() with readonly modifier #8943

Closed
adoy opened this issue Jul 7, 2022 · 2 comments
Closed

Reflection::getModifierNames() with readonly modifier #8943

adoy opened this issue Jul 7, 2022 · 2 comments

Comments

@adoy
Copy link
Member
adoy commented Jul 7, 2022

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

@cmb69
Copy link
Member
cmb69 commented Jul 7, 2022

Yeah, apparently just an oversight.

adoy added a commit that referenced this issue Jul 7, 2022
* PHP-8.1:
  Fixed bug GH-8943 Reflection::getModifiersNames() with readonly modifier
@adoy
Copy link
Member Author
adoy commented Jul 7, 2022

Fixed by #8944

@adoy adoy closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@adoy @cmb69 and others