Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120179 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47309 invoked from network); 2 May 2023 12:04:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 May 2023 12:04:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 739B618055E for ; Tue, 2 May 2023 05:04:50 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 2 May 2023 05:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1683029088; bh=PMtta+roHXXLBO+4vzw17yZpr/JK6/RCUukFTIroqRc=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=K//cTBYb5p7JZSzyu9TGTrBOZvDKhGeehH9mXz61Yqk+3vayALdPtV8ZmLqf88MXJ QUFgSy+rF7/M9Ugv0k7KdSYE9d7XL2gDV/X43eQxn/BeDMIf5N/XfznRFQ26tLNYlU 9Nb0r3k6KZXzdFoVE1tkvh2Lw6Gl9xt9SZfM2W4fJUN1RA0jsI6SvFZUpB8XQweWiu 1svFXtavlWPirTwP/703JvYSzX1UXfP/cczChRMkHiwwnKeLtjKzMDfSTmnp8oQHXH U3D4XSez46iO+MXjUc3swLBNKS0wvLR+ER1hDC7KssNEtTofMD3bUuX6JhKzWRpydi FGGwWXSBqkRTA== Message-ID: <3fca0daf-ebc2-3031-caa2-978b1dc37408@bastelstu.be> Date: Tue, 2 May 2023 14:04:45 +0200 MIME-Version: 1.0 Content-Language: en-US To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 5/2/23 13:56, Dan Ackroyd wrote: > And unless I'm missing something, the second option doesn't appear > usable with static methods, which is also a problem with > get_parent_class() static::class or self::class appear to do the right thing depending on what exactly you want to retrieve. >> while code which invokes >> get_parent_class() without parameters should be modified to use >> get_parent_class($this) instead. > > What would the equivalent code get_parent_class() for static methods? e.g. > parent::class appears to do the right thing. Best regards Tim Düsterhus