Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130178 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 BDE8B1A00BC for ; Thu, 26 Feb 2026 20:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772137064; bh=fSfsNMahO7q9DTz+9Ft0aqCuDrmDlt4sDiZt5xTZY08=; h=Date:From:To:In-Reply-To:References:Subject:From; b=ZqsXEQ9GNr1fGIj1UN8RSl+A324mK8fTzRw+OeaDKY7wfTFXoZb1kx5HeI/57C9EU MV3t2TxDgf04UjArBWT+626NIsoO6pMXb5wCn5QOtF+lRDeR9EN5qlWFAfyRqQ1h8V iVRqHOAoH39yrzIzjVGBQ8vvA+khmJ88ShQ3H0zlFdQ/ZAddl8R1BnQR4jeHYp0i2V wxjq5w72869HzuPx9GoysmxvxUG+fPL+Flc2I9+kUPEt/IKNMsUhY+R8STHmFBXU26 pBfFTG4OfVW3mHYWZ0OUNI+/2OjWqSCfYfRG0GstfEd9cPYymIMsHc8D/piO333c+t cQuszAmlZpg+Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9B5DD180087 for ; Thu, 26 Feb 2026 20:17:43 +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 fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) (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 ; Thu, 26 Feb 2026 20:17:43 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id C1B34EC054E for ; Thu, 26 Feb 2026 15:17:37 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Thu, 26 Feb 2026 15:17:37 -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=1772137057; x=1772223457; bh=tIPMErNXjPRPnCAbs3vhi NaNrpROfhCqUtLCnqYSfE8=; b=e2u3BmNId3aBfoCw/QQJMhHguEQy5qU0XvWBl eYWdqRH3HfdSQ4Am4IDgAxKPkc0J/330pfb2AUm5wupIDXJiVXM6J73ssRe8OTdk NmxvCvUaWQaOZcV/9/wOGvsG1QS9XP8PtA+QuZS5ALyG4CHINuf+n1NL3YvyZEde OwKLrxHVlxaZwGvT2EtXO6/rOrbW9pwNA7vXG/DDXpbU26oMUEVVyux7VFvB2UMh on8Orxbylbh2mcFTa8H3pUtR1OsH2ELzpR3QTi0Yw7WGDI/jOkOa9fnoplz2PoIn 8KyOjmQJzOom45P2m4Ul+8Q2MpxEJh67wypYPEEh7GXmA3Mrw== 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=1772137057; x=1772223457; bh=t IPMErNXjPRPnCAbs3vhiNaNrpROfhCqUtLCnqYSfE8=; b=jXXIgOCXw8lOxmR4K mxI0n1HCF12aqvMSedGhVy59KXJ1VGzXq26zJ3XUZEXe9YYnvPRK3kZkzu2cd1cl DV0ZqpBft0Am0mCaq2kbqtlnKXSxFi4qahVKLBhmNNbtFEQyU+I6Maog7aJY7Zc6 Keb7Q/1fPPeWfT9o9GvTzmp0Cdt2QkzUU1Pmy0/uIMVN53Av9Kh9wYK0+/8Nc7PF Vc60wyzojWcqkEVNzHWQULcmbS4TQtYUos/sdGyqCQPL6kfLo+vqvjcFyar8R2IT Cri0WBuLOnRtc+dMXLV8faRMVi2X4l1GnfvBWpJKGAqV1tmfvyxlmoBnQHcIhOFp URiNQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvgeejtddvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvffkjghfufgtgfesthejredtredttdenucfhrhhomhepfdfnrghrrhih ucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmqe enucggtffrrghtthgvrhhnpeeuvedvudfhffffhfelueehvdejvefgleegteegffetudef leehgeefvdehgeelteenucffohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghl ughtvggthhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 8D7EE700065; Thu, 26 Feb 2026 15:17:37 -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: AfgL8T1aalgk Date: Thu, 26 Feb 2026 14:17:17 -0600 To: "php internals" Message-ID: <09ff54b3-5d13-4017-b867-4b2dda837624@app.fastmail.com> In-Reply-To: References: <24229A82-F5BF-48F2-9E6C-FE45A99FB9E9@cschneid.com> <65C41C15-74C2-4A25-ABA7-056D612DF366@cschneid.com> <5706932f-e005-41cc-8bc5-1fb1fa4e344c@app.fastmail.com> <4BCFFC1C-7F82-40FF-ADEE-E8161C05047D@cschneid.com> Subject: Re: [PHP-DEV] [RFC] DocComments For Function Parameters Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Tue, Feb 24, 2026, at 6:18 PM, Christian Schneider wrote: > Am 24.02.2026 um 21:53 schrieb Christian Schneider : >> Am 24.02.2026 um 20:13 schrieb Larry Garfield : >>> 1. As Matthew said, putting the doc comment after the parameter is inconsistent. I've... never actually seen someone do that. I have seen people put doc comments on the line before a parameter (which I then had to move to the function docblock, which was annoying). Every other docblock-able construct has the docblock as a prefix, not suffix. It should be a prefix here as well. >> >> Just to clarify: You can write it before, in the middle or after the parameter, just like you can write it before or in the middle of properties. >> The proposal allows pre, middle and post styles. > > I changed the example to use the standard docblock-before variant and > added a separate example to explain the option to put the comments > behind the parameter definition: > https://wiki.php.net/rfc/parameter-doccomments#example > > Regards, > - Chris Huh. I had no idea that a suffix was possible for properties at all. I've literally never seen that. TIL. Given that, and that the RFC is now promoting the prefix style, I am now in support. One additional note: In the updated suffix section, it would be good to note that is similar to properties, which already support a suffix even if it's hardly ever used. I think it's likely that many others also don't realize it's already possible. Also, there's a missing period after "next parameter." :-) --Larry Garfield