<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rfc-primary-constructors-blyqvpmum" -->

---
title: [RFC] Primary Constructors | daily.dev
description: A PHP internals mailing list thread discussing the proposed Primary Constructors RFC for PHP. The RFC proposes a new syntax allowing class properties to be...
canonical: https://daily.dev/posts/rfc-primary-constructors-blyqvpmum
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: [RFC] Primary Constructors | daily.dev
og:description: A PHP internals mailing list thread discussing the proposed Primary Constructors RFC for PHP. The RFC proposes a new syntax allowing class properties to be...
og:url: https://daily.dev/posts/rfc-primary-constructors-blyqvpmum
og:image: https://api.daily.dev/og/posts/BLYQVpmUM.png
og:image:alt: [RFC] Primary Constructors
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# [RFC] Primary Constructors

**[externals.io](https://daily.dev/sources/externals)** · 80 min read · 0 upvotes · 0 comments

## Summary

A PHP internals mailing list thread discussing the proposed Primary Constructors RFC for PHP. The RFC proposes a new syntax allowing class properties to be declared directly in the class signature (e.g., `class Money(public readonly int $amount) {}`), saving a few lines over traditional constructor promotion. Key debate centers on whether primary constructors should support a body for initialization/validation logic. Critic Nick Sdot argues the feature is too limited without body support, especially for readonly classes where property hooks don't work, and warns against shipping another half-finished PHP feature. RFC author Rob Landers defends the scoped design, citing data that 30-40% of constructors are empty and 61-71% of Laravel/Symfony classes could benefit, while suggesting body support could come in a follow-up RFC. Rowan Tommins takes the opposite view, arguing that full parity with regular constructors would cause endless style debates.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://externals.io/message/131653>

## Similar posts on daily.dev

- [\[RFC\] Primary Constructors](https://daily.dev/posts/rfc-primary-constructors-wiuaokyan) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] Primary Constructors](https://daily.dev/posts/rfc-primary-constructors-ykd5kv1oa) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] Primary Constructors](https://daily.dev/posts/rfc-primary-constructors-0izd2c7kn) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] Primary Constructors](https://daily.dev/posts/rfc-primary-constructors-68gpapvfc) · externals.io · 0 upvotes · 0 comments
- [\[RFC\] Primary Constructors](https://daily.dev/posts/rfc-primary-constructors-h4bivd5ey) · externals.io · 0 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/rfc-primary-constructors-blyqvpmum)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"[RFC] Primary Constructors","url":"https://daily.dev/posts/rfc-primary-constructors-blyqvpmum","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rfc-primary-constructors-blyqvpmum"},"datePublished":"2026-07-01T11:45:30.405Z","dateModified":"2026-07-01T11:45:53.690Z","description":"A PHP internals mailing list thread discussing the proposed Primary Constructors RFC for PHP. The RFC proposes a new syntax allowing class properties to be...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"externals.io","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"externals.io","logo":"https://media.daily.dev/image/upload/s--9i0zxASK--/f_auto,q_auto/v1780213616/logos/externals?_a=BAMAMiWQ0","url":"https://daily.dev/sources/externals"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rfc-primary-constructors-blyqvpmum","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,php","timeRequired":"PT80M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"externals.io","item":"https://daily.dev/sources/externals"},{"@type":"ListItem","position":3,"name":"[RFC] Primary Constructors"}]}
```

