---
title: "New without parentheses in PHP 8.4"
url: https://daily.dev/posts/new-without-parentheses-in-php-8-4-c78hlqlvu
source_url: https://stitcher.io/blog/new-with-parentheses-php-84
type: article
source: "stitcher.io"
published: 2024-07-11T08:22:50.174Z
updated: 2024-08-23T16:02:56.575Z
tags: ["webdev", "php"]
reading_time: 3
upvotes: 145
comments: 7
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.

# New without parentheses in PHP 8.4

**[stitcher.io](https://daily.dev/sources/stitcher)** · 3 min read · 145 upvotes · 7 comments

## Summary

PHP 8.4 introduces a feature allowing developers to create new objects without parentheses, simplifying code and enabling method chaining directly on newly created objects. This update extends to methods, properties, static methods, and even supports dynamic and anonymous classes. However, constructor brackets remain mandatory for class instantiation to avoid parsing ambiguities. Despite minor limitations, this syntactic sugar promises to enhance coding efficiency.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://stitcher.io/blog/new-with-parentheses-php-84>

## Community discussion

Top comments from developers on daily.dev.

**@master\_aless** · 7 upvotes

> We're almost getting closer to python's syntax 😂

**@joefrancedev** · 2 upvotes

> Great news for PHP 8.4! Creating objects without parentheses will really simplify the code. Awesome for method chaining!

**@vladutteodor18** · 1 upvotes

> best thing on this version.
> new ReflectionClass($className)->getShortName();

**@robinskills** · 0 upvotes

> To be fair, I'm not sure if I am liking it or not. Guess I need to wait and find out.

**@mzakrzewski** · 0 upvotes

> Love to see how PHP evolving!

## 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

---

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

[View this post on daily.dev](https://daily.dev/posts/new-without-parentheses-in-php-8-4-c78hlqlvu)
