PHP8 Attributes

PHP8 Attributes

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.

PHP8 Union types

PHP8 Union types

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.

PHP8 Nullsafe operator

PHP8 Nullsafe operator

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.