Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127915 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id D97F11A00BC for ; Sun, 6 Jul 2025 11:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751800698; bh=8DiAvl8sEyjAoQgFY6tcxvJZjFJanWmjX2OjeHqQK1U=; h=Date:Subject:To:References:From:In-Reply-To:From; b=LqasBJx1Xwfh/BZJABsxsRzDqh6eLbN9Vf5jlraFlMnr2UACUdgIPZ+8A+uAh4/30 vIV832YzT/kw2ili7yqlC/D1o71fnIXzBKML66jsg4G/rGJPLmddhmDkLKJg2/hS7N v3kHoKUgyaDKoq/iktR2CsXYrsQjayDYPAIU4bE7MnlMFvo+bl31um01ilnKNvORgS GVqcEW0HVbV5Y2EkMpol4pT61agN47T7Lc4QcsEl+42h6eEw4EorDYMhtbU7hpU0jN kS9ETxbyI4G8FNopgaXAYlC6lDPDXE0SnuVc9k5o9j3Nh3BQv/GW285jt/MxV//Vf1 6k1Blgs7SXQzw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1BBA1801E3 for ; Sun, 6 Jul 2025 11:18:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 6 Jul 2025 11:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1751800805; bh=Mzmn98WaP1+2P5wCEtCOAw1iRhwBI+18lVeik6I3E4E=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=jCa0yQEtRFmHu3medwlvsab0cb0DOYIBBnT+ABgegRtMmparsb6hPhV/6LX4OIfyA fePHq8H/OFk/CTcADWslQVVv5Z/5hpH/2cKuFkI6HFeRPLplGG5ktTtK5UZTVDcw/j dH7f9NQuJFLNQEzNAaY3XtpYw8i82L29DYogL5SCeiVP9HkkgzFAMeyjNE3Qq3nz7J WXL3/WMvVED59FEDI0QTKbqVb/+JWkSmzTSAdlN5kGtKr3nq+Yu3IGUGUyWSs/70xd SGdsyD7pHS6Mg3FdEkGIx2iZyaR7RYlpBVARWnMdwbWMS0JkwbmHa/laC8r1o7FzMC h8hLunLgTePcA== Message-ID: <552c3b19-0db5-49b0-aeda-807d3339379a@bastelstu.be> Date: Sun, 6 Jul 2025 13:20:03 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] #[\Deprecated] for traits To: Daniel Scherzer , php internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/6/25 01:30, Daniel Scherzer wrote: > I'd like to start the discussion for a new RFC about adding support for > #[\Deprecated] on traits. > > * RFC: https://wiki.php.net/rfc/deprecated_traits > * Implementation: https://github.com/php/php-src/pull/19045 Thank you. That makes sense to me. On a first look, I agree that `use`ing a trait is the single and obvious point where the message for a deprecated trait should be emitted and can't think of anything else. Best regards Tim Düsterhus