Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129889 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 702321A00BC for ; Fri, 23 Jan 2026 13:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769174046; bh=LPZFPtwYgdQ54LuTy7FGnJ8BlThF+74qzZwQHBu/VDk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SzZvsqpswJeU1PEhoz/SOs5FTeSyHqoW2QaxpVGEbgxK3DPdB9lwAAUvDztXgyGzq SdO905e+tlG7SC4CK4R0kJOL3/xoNHBqtQKNu7LySIvfipFr8NbypmEa1JEteclJZf 20I+SGgg+DoL5jhaH9Sx+5xn3R2Sea9Lv7Ngd8KouD5Ozkew9BkKElsWP4wrSEtQNF G/WaEOi9+n4/U4a2v49gc8Edrl08X+OZorJ1TzAQR/JVJciX44ZM55zDDldBfdNGpL FkaGYnqHeZPa0zmfEo+eKeEu9famY7QRZ6gAMOswgLHq3FeLVePnijdqhAELaVVRgw ugaWMqUiNvY/A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 46ADF18002F for ; Fri, 23 Jan 2026 13:14:05 +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=0.6 required=5.0 tests=BAYES_50,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: No 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 ; Fri, 23 Jan 2026 13:14:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1769174038; bh=eH03tslc+snZHpeU30ObclYOKTfKhwwRc2u3qRCkccA=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=iqUk6G5f9SDRaRZ4UnnJd9MLXj26qm+kD9N0/N9IsGe4pPymwB71NIS8h8T6JD7po KZDuQf2no4dOE9vp7oji8fGabCcDz978Zrm9byPUX4QFaG/WLlEZGVzYaU888U/74h TIQTQkYqiTW6bhTpxKV7zQGvIOxYBxqKp6qry2y3OjU1I7yatKGtMvY680wAQSYG8Z mAbUZnNPhKtDN6ThEw94XRGzJlb6KNKkHhL5E47A8AYz21Dprq63O1n1yQfalEbOMk ZvPOZoAyFIt6CCiPjnmwqHzhq1pdrJmC//v5AtnMXpUuZgV1C0bNY+ffHQyyYf5zwn DmW5aEieMTAHg== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Jan 2026 14:13:58 +0100 To: Mathieu Rochette Cc: php internals , Arnaud Le Blanc Subject: Re: [PHP-DEV] [RFC] Partial Function Application for instance of non-static methods ("$this") In-Reply-To: References: <64953ec741a4c6609519e1878ad37b54@bastelstu.be> Message-ID: 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 Am 2026-01-23 14:06, schrieb Mathieu Rochette: > `(DateTimeImmutable)?->format("c")` feels a bit weird. Reminds me too > much of the null-safe operator. That's because it is. It's literally the same case of a `DateTimeImmutable` constant with useless parentheses and the null-safe object member access: https://3v4l.org/NebOR#veol > They could have incompatible signatures, yes, but they also could have > compatible ones too. It's not a deal breaker. I don't imagine needing > this in practice. But I don't see why the language would prevent that; > I can already make that mistake with short closures or any methods. For > me, it's the role of the static analyzer to tell me if I made such a > mistake (or runtime errors ^^). The signature would need to be “unique” to properly generate the signature of the resulting Closure. Best regards Tim Düsterhus