Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117722 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11846 invoked from network); 12 May 2022 19:32:09 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2022 19:32:09 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2FDFB180053 for ; Thu, 12 May 2022 14:11:29 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 12 May 2022 14:11:28 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2AD545C023D for ; Thu, 12 May 2022 17:11:28 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute1.internal (MEProxy); Thu, 12 May 2022 17:11:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1652389888; x= 1652476288; bh=ywpgmHydRU1IacIJAPyd1xy2EbvOaNlI30pKJtaSuok=; b=i 4YpLM9RxOqAM4NEX1nJ78KHkGibOYtNNeo4MyK6bHqltXe3NpPyFxxCZ4KBvCpiW 6mJ63gAtmi9jIMfYTAop+kXiqEko/36Q1Varyfrpr/a32xOa1AQgLDiQer1DMIQs Hjo46SCkAloX31KtFOO/6t62UgN6C5Z9E4DVjruJ7MOuVSJHbrkz/1bzkr/vzVg0 WMHp8nB/IWIc6KiS/heU9bEMhbeYpoH0jnxuPlMmpFe7t13iCFl4GvM9C7qa0ZuT Z+VkZnOUgVpGGUCIT2fkToDJT7Blul/pXctv/CuEg2aee7WcWk6xRx6vzETWEMuQ bSUDqBqFJ/Ntjvh3wwROQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1652389888; x= 1652476288; bh=ywpgmHydRU1IacIJAPyd1xy2EbvOaNlI30pKJtaSuok=; b=M xrGWAMItTAkWOkLf9uwhQ854nY9KsLSxInqNZ8p3Oo2NS5GWT+eSGeALuFI2PWjs PaFiIX9ERiWwtXpoTTiKcLap//6bYRqZXt+Q+by+PNzAwMzreQWwxKygyepdcbwk uaTB/6UCta9QQdgDrkxPg5MfO4IZFmqGMIQ7w8puV+c9dM7cv82q6+7t2Y6u/ONs 7FuCqrQkPDAuqYel71D7p10NjoOE0WUmmKbrg7YvNINvP8RPl++pB4hlduS4OzuZ RugF5Bd286KcTd5XXPP9vLzyqdlrpTu0wxIXSF2akl2lUjyeb0vxPtR7uGLcZh1b SrutSR0ZTiZk5vO1719Wg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeejgdduheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpedthfffueffgfeltddthfeujeetleegjefgjeefveej ffdtffethfdtvdeuffegkeenucffohhmrghinhepvgigthgvrhhnrghlshdrihhopdhphh hprdhnvghtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D769B2D4005E; Thu, 12 May 2022 17:11:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-ID: <0d42a208-fc73-4277-a975-6f91c24648c1@www.fastmail.com> In-Reply-To: <627D3BCF.7020903@adviesenzo.nl> References: <627D3BCF.7020903@adviesenzo.nl> Date: Thu, 12 May 2022 16:11:07 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [Discussion] Expand deprecation notice scope for partially supported callables From: larry@garfieldtech.com ("Larry Garfield") On Thu, May 12, 2022, at 11:54 AM, Juliette Reinders Folmer wrote: > After the prior discussion about the same topic: > https://externals.io/message/117342, I have created an RFC to expand the > scope of the deprecation notices being thrown for the deprecated > partially supported callables to include is_callable() and the callable > type in PHP 8.2. > > With this email I'm opening the two week discussion period for this RFC. > All points raised in the prior discussion are already included in the RFC. > > https://wiki.php.net/rfc/partially-supported-callables-expand-deprecation-notices > > I look forward to your feedback. > > Smile, > Juliette I didn't follow the earlier discussion in much detail, but the is_callable() deprecation seems fine to me. For the `callable` type declaration, I'm not opposed but is it redundant with the existing deprecation? When would you pass a callable to something and not end up calling it anyway, which would trigger the existing deprecation? (Meaning in practice you'd always get 2 deprecations, which are not necessarily better than one.) --Larry Garfield