* Title of session: Cool new things in PHP
* Session description: An overview of things that were introduced in more recent PHP versions, and which we can use (or soon use) in new MediaWiki code, but which people might have missed.
* Username for contact: @Lucas_Werkmeister_WMDE
* Session duration (25 or 50 min): 25 minutes is probably enough
* Session type (presentation, workshop, discussion, etc.): presentation, probably
* Language of session (English, Arabic, etc.): English
* Prerequisites (some Python, etc.): PHP (wouldn’t be interesting for non-PHP developers)
* Any other details to share?: Could perhaps be merged with {T331276}.
* Interested? Add your username below:
** @jhsoby
** @Muhammad_Yasser_Jazirahly_WMDE
** @Novem_Linguae
** @Ollie.Shotton_WMDE
** @bd808
** @catrope
** @lcawte
----
I could imagine two styles of doing this collaboratively: collecting everyone’s ideas for things to mention in advance (and then have one person putting together a presentation and holding it), or having people suggest things during the session.
Incomplete list of things to mention:
- `yield` (not very new, but still useful, especially for test case data providers)
- static types (fka type hints) – just a very quick overview: param types, return types, property types
- arrow functions
- `...` operator: in function declarations, function calls, arrays
- named arguments
- attributes
- constructor property promotion
[Modern PHP](https://dnlytras.com/blog/modern-php) (blog post) also seems like a useful resource.