Skip to content

Implicitly enable function entry generation when class entry generation is enabled #6675

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

Closed

Conversation

kocsismate
Copy link
Member

@kocsismate kocsismate commented Feb 8, 2021

The only reason why I opened the PR instead of directly committing it is because the @generate-function-entries supports a file-level declarationPrefix property. So if both @generate-function-entries and @generate-class-entries are provided then we can:

  • overwrite the declarationPrefix with the latter value (I went with this approach for simplicity for now)
  • throw an exception to forbid overwriting

Or another possibility is to add support for a @declaration-prefix annotation, I think.

Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

I don't think it really matters either way...

@php-pulls php-pulls closed this in 99b08ac Feb 9, 2021
@kocsismate kocsismate deleted the implicit-function-generation branch February 9, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants