Asymmetric visibility is a feature that was introduced in PHP 8.4 (released: November 2024) and allows you to define different visibility levels for reading and writing properties. This is a feature which I've not seen used much in the wild yet, but I think will become more common as developers become more familiar with it.
In this article, we're going to explore asymmetric visibility in PHP and how to use it. By the end of the article, you should feel confident enough to give it a try in your own applications.
continue reading on ashallendesign.co.uk
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.