Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130165 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 7D7F31A00BC for ; Wed, 25 Feb 2026 00:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771978751; bh=XWCtOIGeaITruXBhI4zQu11GBpLMrjtBKH/MNbU3LUk=; h=From:Subject:Date:References:To:In-Reply-To:From; b=KDBx3A9DTuXCJ75b2qj2H3YXzn1JoK9pkpUpemg/R0CGPM+/mmSNDHY0+e0JOon78 oIYspIUgZsbtQH/i2gyQrduSnYE7okfR3qkYT6N1eFxXvBkGtClMzL3zT5SzDP7Bi+ Z5ueYa0CAJJCLPWyvkbI4qnAyIsuckwWoD6ShV8CjBTj2P9qPQ1koWzP5x8X+etKjI oOLdSJjeL7HQa3CZHV2ooDsRSJGIIg2JwhAGR5BvascYBvEgzzTakhGBONZzahyIXf mVWYqM4m6FuWBOoFe+gfEcfmygHTyA1DXoEp8Dg1sFtQe7XQZZ4CnoR080VtTcjWS0 pB9AN1BBWH0hA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EBB65180594 for ; Wed, 25 Feb 2026 00:19:03 +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, T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (darkcity.gna.ch [84.234.28.114]) (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, 25 Feb 2026 00:19:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.gna.ch (Postfix) with ESMTP id D53512380A62 for ; Wed, 25 Feb 2026 01:18:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1771978736; bh=XWCtOIGeaITruXBhI4zQu11GBpLMrjtBKH/MNbU3LUk=; h=From:Subject:Date:References:To:In-Reply-To; b=Ibrc56wbwcHLIMIRuNiFQ6eGha2gsdfuz9Bpy6I28Ks7ltiz/dLjsxkoMWSjpe/dF Fea1K43wXuzLjl1GXGBAbsn/+KXhdEpjMesESMn0urbYu+V34xKk2iPiytB9hmUccA pu2eJQ6Wd1/vPrgC96LkSkiPM9Gm1C1AUdfNLdMM= X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (mail.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bqyZhI6jfOjS for ; Wed, 25 Feb 2026 01:18:54 +0100 (CET) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e2d:4d00:48bf:3ca1:c1ef:767e]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.gna.ch (Postfix) with ESMTPSA id 890372380A41 for ; Wed, 25 Feb 2026 01:18:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1771978734; bh=XWCtOIGeaITruXBhI4zQu11GBpLMrjtBKH/MNbU3LUk=; h=From:Subject:Date:References:To:In-Reply-To; b=R2wlit+3n2q1ZcdQQkn1BF4aeMSIn20xeggT5db2mOIDo9xUmp07+aaneITNTGXQS vSywEMUiCgGYDeJx1Xj0SWIGPva2i0Gzbz68jRh4GHXOk4QCF67xb8K7R6XtsBfWqj BLlOLnFB8WRmS/r1HoaJXKjd+FH5pBeQ2pzcAGGk= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [PHP-DEV] [RFC] DocComments For Function Parameters Date: Wed, 25 Feb 2026 01:18:53 +0100 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> To: php internals In-Reply-To: <4BCFFC1C-7F82-40FF-ADEE-E8161C05047D@cschneid.com> Message-ID: X-Mailer: Apple Mail (2.3864.400.21) From: cschneid@cschneid.com (Christian Schneider) 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. =20 >=20 > 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