PHP8 Named arguments
That’s it!. Please share your thoughts or suggestions in the comments below.
That’s it!. Please share your thoughts or suggestions in the comments below.
Instead of PHPDoc annotations, you can now use structured metadata with PHP’s native syntax. That’s it!. Please share your thoughts or suggestions in the comments below.
Less boilerplate code to define and initialize properties. That’s it!. Please share your thoughts or suggestions in the comments below.
PHP 8 Nullsafe operator Instead of PHPDoc annotations for a combination of types, you can use native union type declarations that are validated at runtime. That’s it!. Please share your thoughts or suggestions in the comments below.
Instead of null check conditions, you can now use a chain of calls with the new nullsafe operator. When the evaluation of one element in the chain fails, the execution of the entire chain aborts and the entire chain evaluates to null. That’s it!. Please share your thoughts or suggestions in the comments below.
The new match is similar to switch and has the following features: Match is an expression, meaning its result can be stored in a variable or returned. Match branches only support single-line expressions and do not need a break; statement. Match does strict comparisons. That’s it!. Please share your thoughts or suggestions in the commentsRead more about PHP8 Match Expression[…]