Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130068 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 4665D1A00BC for ; Wed, 11 Feb 2026 00:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1770768198; bh=BdApS3humV1jBLaZV5Xc9E321N+POk7cKlCVx/iT8Hg=; h=Date:From:To:In-Reply-To:References:Subject:From; b=DHXY5OGKxKt2N2gHXl6PQTK8Vjh5lKfq2QybnaaDGCT84+w0lYxln7pPgF+2Odn6Q 5+/sUGjfVGIFgNB+nGibPabP8DBHhPY7eqM5Lrop67qy+KMFoYfZb85hMPDM6IQr2G 6K++iiaCBFg2bENlgA9TBInE+Mn8V1NwfSQ9ja4HaU5rtgpDI5XYGS5sCaq8VUuRAM brm3bHfBiJDWvHh1/1TixfX7CRIHJ2TjLt0nUCPl+SvKKAWDjAaWRJ1BvE3RiHYV6S wfLOU/idsqb6/7hyPp1tgBmscN7qvs7UOWCim9NABOd8achTi6kau3TLTmbvQUp34i ymMjl1GlzvTQg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C3F51180084 for ; Wed, 11 Feb 2026 00:03:17 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) (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 ; Wed, 11 Feb 2026 00:03:17 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 2D89414000F2 for ; Tue, 10 Feb 2026 19:03:12 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Tue, 10 Feb 2026 19:03:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm3; t=1770768192; x=1770854592; bh=plN3IN7fdXvZujW5zAxMm bFA9iyomRu4BCgqlO/HsJk=; b=H76k61YL5q+50Damq6Ow3HLQZFgu+z1fKLtjn 4RUVUbYi2Q9lMZ1l9TDyEslTVxTsexSwbA236qZnhoa5zMyA8PUE5o9AVtE073Kr XX4pi0MAIEITs6cJP4IFfdkXMXwDWg4juS0fd5YWZqi1lLniuZv4BabXVshAwq1r j+C7YTHKKDnfRYbRhRFKixAf+48fHQSoNrtrr6KpwSiphYrKI8D99RT3lbzYKNtN KvwKs/geDayjT3XWW3nDLbFUKSnJWPNLwLpwsHxUYVufSxUoqJ87KC8HP01On3jp KNid7g50S4/tW7bEPjgtkpw/ZxAEBkn1lYRGcIPz7RA8a3Xvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770768192; x=1770854592; bh=p lN3IN7fdXvZujW5zAxMmbFA9iyomRu4BCgqlO/HsJk=; b=KrpUZmzTAbIShj4xo DX8c3nRNQm29t3Wk/s13PeXM0kyuTyZyh6ukBk43xzYcjkLdM06ZVtxYX+napSv+ JlLkVcwHVPvnkl46n74lgivsiJV9xGrjfGpbumZrn4kSfbh2gMAGLbYGrN5JrYs5 BOFGzlMWGExA4QdJzwXLIKFvCilDHA9cNYl0b5hrcryP5llPxI+567dG6yF0sgHO kxxXeRekhaEQYHHbBGL07WoYaFBD7OgVXNYdtjtDENHkM4x5nMR5I54hZUIg+d3b CUfvYwoSmHRYjWFEOYhO1C8V8PNuNeFtWNc2od/MbycPPF5wQZ6yTu0s00mN9EdH plcmg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtddutdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthhqredtredtjeenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeeugfetieejueevffdulefhhfethfekvedtueevgfffvdef iedvtefgheevteelffenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghl ughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E415C700065; Tue, 10 Feb 2026 19:03:11 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: A8sSl7NkkGNw Date: Tue, 10 Feb 2026 18:02:51 -0600 To: "php internals" Message-ID: In-Reply-To: <0616b43a-23dd-4ab8-9591-7a1e631dd434@bastelstu.be> References: <0616b43a-23dd-4ab8-9591-7a1e631dd434@bastelstu.be> Subject: Re: [PHP-DEV] [Vote] Partial Function Application v2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Mon, Feb 9, 2026, at 3:09 PM, Tim D=C3=BCsterhus wrote: > Hi > > On 11/20/25 22:59, Larry Garfield wrote: >> https://wiki.php.net/rfc/partial_function_application_v2 > > As part of my work on the PFA-for-$this RFC I noticed one thing that i= s=20 > left undefined in the RFC text and AFAICT not currently tested with th= e=20 > implementation PR, but appears to =E2=80=9Cjust work=E2=80=9D is late-= static binding=20 > with `static::`: > > > class P { > public static function m(string $a): void { > echo __METHOD__, PHP_EOL; > var_dump($a); > } > > public static function get() { > return static::m(?); > } > } > > class C extends P { > public static function m(string|array $b): void { > echo __METHOD__, PHP_EOL; > var_dump($b); > } > } > > P::get()(a: 'a'); > C::get()(b: []); > > This correctly results in: > > P::m > string(1) "a" > C::m > array(0) { > } > > being output. > > Can you please make sure to include this as an Erratum within the RFC=20 > text (and also make sure it gets a proper test in the PR, including al= l=20 > possible OPcache variations)? > > Best regards > Tim D=C3=BCsterhus Thanks Tim, good catch. I have added an errata to that effect; Arnaud's= on vacation this week but will add some tests when he returns. --Larry Garfield