Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130123 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 83CD21A00BC for ; Sat, 21 Feb 2026 19:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771703187; bh=y4mgAW0uvU6nJO3JeJ7kCelJDxGSXMHn0xjjt6NSJQc=; h=From:Subject:Date:References:To:In-Reply-To:From; b=K4eENCm9DUyugKMNlIjHwxaX/KHT8PjyqHOIfu07rp/0rMQtGg2SqqEg0OBUuG+LF SIRAVJpFhcCoGABf1kmb4EqfsiHNkTIXZh9iWgjawfbcEzCs/5a2pm5RL9fDJIDk1F Os9sByC42cPWTkF8GDDo4gPQ4s/6CfrWDUKfojCxxjj0wBpDF56UYA8Z06yeA/fZSU XnjlV8EZ+r/M4j56gXjEh6trNUsSFNSiPumUiSopKQNgQDs0pkj5n/cwtXxSbYcmWz 2j29cbwtcLs/NWOXZS3ZcKD//l9tAyFxBf1Z8Z7mz0CIHmHhyRAx6HS+OQ2splev9Q qkuAvyXZTngmQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5461018004F for ; Sat, 21 Feb 2026 19:46:26 +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 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 ; Sat, 21 Feb 2026 19:46:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.gna.ch (Postfix) with ESMTP id 9A3242381779 for ; Sat, 21 Feb 2026 20:46:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1771703179; bh=y4mgAW0uvU6nJO3JeJ7kCelJDxGSXMHn0xjjt6NSJQc=; h=From:Subject:Date:References:To:In-Reply-To; b=W1fRSU8m0zp/6NjgcSRNzVEl1Wum5V+EJ/U7dSfIXIzMYiPIp4tIInH1gvbx7y4/L lhEHrVC32mlTLwsQj5JOwQu9P6mKDE5AnsurDTg+cR9pXMqlhU6s7E16WTaPXAqoSN cthkliW1Z5WT6olyiiKERarR4yHX2GqeqRD+6XUQ= 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 Xmvdgul94T5E for ; Sat, 21 Feb 2026 20:46:17 +0100 (CET) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2e2d:4d00:6416:e3fa:759c:f418]) (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 BC35B23800E3 for ; Sat, 21 Feb 2026 20:46:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1771703177; bh=y4mgAW0uvU6nJO3JeJ7kCelJDxGSXMHn0xjjt6NSJQc=; h=From:Subject:Date:References:To:In-Reply-To; b=JvvLRCmTWJIHb+NuMDyr2bKB1qvW90FXe868oxGetckDmBd0SODQjTJI5PW23Si0V b9NSLDMlHH3UZnuPfdJzTARm5xrPfjc7tEgotPQx7cmHEUUpALYfVZ1gxupkk4WaFN RJwoL4R/wXp54cwQxP2y1MDiBiY2qS90PmS3gwTI= 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: Sat, 21 Feb 2026 20:46:17 +0100 References: <24229A82-F5BF-48F2-9E6C-FE45A99FB9E9@cschneid.com> To: PHP Developers Mailing List In-Reply-To: Message-ID: <673FE008-CBE9-43B0-B339-A2184E3195FB@cschneid.com> X-Mailer: Apple Mail (2.3864.400.21) From: cschneid@cschneid.com (Christian Schneider) Am 21.02.2026 um 19:41 schrieb Matthew Weier O'Phinney = : > - Would it also support the comment appearing before the parameter? >=20 > /** This is the description */ > string $message, Yes, this works. > - If so, what would be the behavior of the engine if a docblock was = present in both positions, like: >=20 > /** This is the description */ > $message > /** But what about this? */, The last DocComment wins, the same as for the current class A { /** a */ public /** b */ int /** c */ $property /** d */; } echo (new ReflectionClass('A'))->getProperties()[0]->getDocComment(); This outputs the last one (/** d */), see https://3v4l.org/PZFHD Regards, - Chris