Skip to content

Do not display the value of UNKNOWN constants in the manual #9843

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

Merged
merged 1 commit into from
Oct 30, 2022

Conversation

kocsismate
Copy link
Member

Just like in case of unknown parameter default values, no initializer is generated for constants having an unknown value. The manual can still display ? if phd is also updated, or the value may also be omitted entirely if we want to.

@kocsismate kocsismate requested a review from cmb69 October 28, 2022 06:34
@kocsismate kocsismate changed the base branch from master to PHP-8.2 October 28, 2022 06:34
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks like a good idea; putting UNKNOWN into the manual doesn't make much sense, and simply not showing the value is exactly what we want, I think.

@php php deleted a comment Oct 28, 2022
@kocsismate kocsismate merged commit 721e604 into php:PHP-8.2 Oct 30, 2022
@kocsismate kocsismate deleted the stub-unkown-const-value branch October 30, 2022 13:58
kocsismate added a commit that referenced this pull request Oct 30, 2022
* PHP-8.2:
  Do not display the value of UNKNOWN constants in the manual (#9843)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants