<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd" -->

---
title: [VOTE] Deprecate returning values from __construct() and...
description: A PHP RFC to deprecate returning values from `__construct()` and `__destruct()` magic methods has been accepted unanimously with 39 Yes votes and no...
canonical: https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: [VOTE] Deprecate returning values from __construct() and __destruct() | daily.dev
og:description: A PHP RFC to deprecate returning values from `__construct()` and `__destruct()` magic methods has been accepted unanimously with 39 Yes votes and no...
og:url: https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd
og:image: https://api.daily.dev/og/posts/MGvsda1yd.png
og:image:alt: [VOTE] Deprecate returning values from __construct() and __destruct()
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.

# [VOTE] Deprecate returning values from __construct() and __destruct()

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

## Summary

A PHP RFC to deprecate returning values from `__construct()` and `__destruct()` magic methods has been accepted unanimously with 39 Yes votes and no abstentions. The RFC targets the confusing behavior where return values from constructors and destructors are silently ignored. Discussion clarified that returning a void-returning method call (e.g., `return $this->privateVoidReturning();`) will also trigger a deprecation, consistent with how void-typed functions already behave. Allowing an explicit `: void` return type declaration on `__construct()` is intentionally out of scope for this RFC. The `__clone()` method is also left for future scope.

## Full article

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

## Similar posts on daily.dev

- [\[VOTE\] Deprecate returning values from \_\_construct\(\) and \_\_destruct\(\)](https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--qxru2wmxh) · externals.io · 0 upvotes · 0 comments
- [\[VOTE\] Deprecate returning values from \_\_construct\(\) and \_\_destruct\(\)](https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--qf9wbwdbj) · externals.io · 0 upvotes · 0 comments
- [\[VOTE\] Deprecate returning values from \_\_construct\(\) and \_\_destruct\(\)](https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--nffnhqaqd) · externals.io · 0 upvotes · 0 comments
- [\[VOTE\] Deprecate returning values from \_\_construct\(\) and \_\_destruct\(\)](https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--phv3drmck) · externals.io · 0 upvotes · 0 comments
- [\[VOTE\] Deprecate returning values from \_\_construct\(\) and \_\_destruct\(\)](https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--6ddqphx9p) · 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/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd)

```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":"[VOTE] Deprecate returning values from __construct() and __destruct()","url":"https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd"},"datePublished":"2026-06-29T14:57:39.064Z","dateModified":"2026-06-29T14:58:04.844Z","description":"A PHP RFC to deprecate returning values from `__construct()` and `__destruct()` magic methods has been accepted unanimously with 39 Yes votes and no...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","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/vote-deprecate-returning-values-from-construct-and-destruct--mgvsda1yd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,php","timeRequired":"PT3M"}
{"@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":"[VOTE] Deprecate returning values from __construct() and __destruct()"}]}
```

