What's new in PHP 8.2

  • avatar
  • 140 Views
  • 2 Likes
  • 5 mins read
Preview post image

PHP 8.2 has been released on December 8, 2022. We'll go through most important features, performance improvements, changes and deprecations one by one.

Read only properties were introduced in PHP 8.1. Now, PHP 8.2 is adding support to declare the entire class as read only.

If you declare a class as read only, all its properties will automatically inherit the read only feature. Thus, declaring a class read only is the same as declaring every class property as read only.

Hey visitor! Register your account and get access to featured articles and more - it's free.