---
title: "Asymmetric Property Visibility in PHP 8.4"
url: https://daily.dev/posts/asymmetric-property-visibility-in-php-8-4-v2yhtcrfa
source_url: https://laravel-news.com/asymmetric-property-visibility-in-php-84
type: article
source: "Laravel News"
published: 2024-11-20T14:11:44.102Z
updated: 2024-12-08T21:29:00.656Z
tags: ["webdev", "php"]
reading_time: 2
upvotes: 55
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Asymmetric Property Visibility in PHP 8.4

**[Laravel News](https://daily.dev/sources/ln)** · 2 min read · 55 upvotes · 4 comments

## Summary

PHP 8.4 introduces asymmetric property visibility, allowing different visibility scopes for reading and writing properties. This means properties can have various access levels for getting and setting. An example demonstrates how public properties can be set to have protected or private set visibility, giving developers more granular control. Note that class properties must have a type and set must be as restrictive or more restrictive than get.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/asymmetric-property-visibility-in-php-84>

## Community discussion

Top comments from developers on daily.dev.

**@4r4ky** · 1 upvotes

> I can not see how the property hooks are better than just simple getters and setters methods.
>
> Can anyone explain it to me?

**@ezechi3l** · 0 upvotes

> Nice, I didn't catch this. I thought it was only for magic setters and getters

**@emilec** · 0 upvotes

> This is just more confusing and will introduce more inconsistency imo. I used to like PHP but this feature (and property hooks) in this 8.4 update are just a nonsense.

**@rodrigovieira92** · 0 upvotes

> Only this "private(set)" which is totally unnecessary, messed up the syntax. Only "public private $..." was necessary.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/asymmetric-property-visibility-in-php-8-4-v2yhtcrfa)
