Skip to content

Instantly share code, notes, and snippets.

View andreasvonburg's full-sized avatar
🍽️
eating

Andreas von Burg andreasvonburg

🍽️
eating
View GitHub Profile
@CHH
CHH / 00_rfc_decorators.md
Last active March 20, 2023 13:48
PHP Decorators RFC

PHP Decorators (alternative proposal to Annotations)

Inspiration: Python Decorators

Todo

  • Further refine how class decorators should work. Should they work on the instance level? Or should they just receive the class name, and can only be used for providing metadata? Instance level is probably the only one that makes sense in PHP. Problem is though, that then the decorator is not called when used in the declaration.