Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Really good posts to be aware of what’s in the new & fresh *PHP 8* and coming (in November) *8.1

Options
Chemaclass
Chemaclass Tech Lead Spryker Solution Partner Posts: 213 🧑🏻‍🚀 - Cadet
edited February 2021 in Knowledge Sharing

Really good posts to be aware of what’s in the new & fresh PHP 8 and coming (in November) 8.1 🥳 🎉 🐘
https://stitcher.io/blog/new-in-php-8
• Union types
• JIT
• The nullsafe operator
• Named arguments
• Attributes
• Match expression
• Constructor property promotion
• New static return type & mixed type
• Throw expression
• Inheritance with private methods
• Allowing ::class on objects
• Non-capturing catches
• Trailing comma in parameter lists
• New Stringable interface
• New str_contains() ,str_starts_with() and str_ends_with()functions
• and more…
https://stitcher.io/blog/new-in-php-81
• Enums
• Performance improvements
• Array unpacking with string keys
• New array_is_list function
• Restrict $GLOBALS usage
• Deprecate passing null to non-nullable arguments of internal functions
• and more…

Comments