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

Use php8 attributes instead of phpdoc annotations #25122

Closed
wants to merge 1 commit into from

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Jan 14, 2021

This is more an experiment or PoC than anything mergeable. As I wrote this bit of code I realized there are a few things that we might want to discuss before we jump onto this new feature and change our public API for this. Hence I'd wait for 22 so we don't rush anything.

I'll open a dev forum post about this to get some input.
https://help.nextcloud.com/t/how-should-we-use-php8-attributes/104278

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst added this to the Nextcloud 22 milestone Jan 14, 2021
@rullzer
Copy link
Member

rullzer commented Mar 30, 2021

Do we want to close this for now? As we can't really depend on it fully yet anyway.
Or continue and then get it into mergeable state.

@ChristophWurst
Copy link
Member Author

As we can't really depend on it fully yet anyway.

We can thanks to the polyfill. This can be done today. We just need consent on how we want to do this.

@rullzer
Copy link
Member

rullzer commented Apr 1, 2021

Ok let us discuss next week then

@ChristophWurst
Copy link
Member Author

Ok let us discuss next week then

soooo let's :)

@MorrisJobke
Copy link
Member

What are the pros and cons? Because it is basically a this infront of the method, right:

#[NoAdminRequired]

(and the correct import statement in the use part of the file at the top).

@MorrisJobke
Copy link
Member

MorrisJobke commented Apr 21, 2021

I just noticed that there is a forum post 🙈 Let me read that. Edit: Replied there.

This was referenced May 20, 2021
@blizzz blizzz mentioned this pull request Jun 2, 2021
57 tasks
@skjnldsv skjnldsv modified the milestones: Nextcloud 22, Nextcloud 23 Jun 2, 2021
@ChristophWurst
Copy link
Member Author

This was a PoC. Will resume this work when time allows. For now I've opened a separate PR to phase out the annotation reflector: #27544

@ChristophWurst ChristophWurst deleted the enhancement/php8-http-attributes branch July 26, 2021 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants