Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120867 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84147 invoked from network); 25 Jul 2023 21:33:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jul 2023 21:33:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C11FA18037E for ; Tue, 25 Jul 2023 14:33:43 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 Jul 2023 14:33:43 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BA00532007F1 for ; Tue, 25 Jul 2023 17:33:41 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute1.internal (MEProxy); Tue, 25 Jul 2023 17:33:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ollie.codes; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1690320821; x=1690407221; bh=IG 4HblRsaelc1PZ+GaCUqZA1Rk6xPoqEYg9OUcCIhFQ=; b=ZtfpMeu9u44Etc4cVM hRX6g2zgFrcJcWn64519WvfGLDVs3nAJlAMbjgD8eQO3OwLa+qcnt+EqCd1C1Ugf eT10KY2tGsPgUkfBKQh0Y+7hEGkk2epHmgO+CuHv371U0HUfXH62sdEpK+MovZEr 0uLsnqJ6RaDhsWfeUm/Bl9zGM40M63cmbIDYL76m1ao6yEfZCoXyeLTMHZyNPuWT AwCfCAEAUkJs0rbkr1HTeL4HA3zTaYF+GKRvXb1ooFbKNNJi1MiHOqHuY/4hAF4g u2Np4ak9hCnFBwT5ZujnhX88NHQyWWdelLNHPcDiu//llVqwNjOjNuUNfceTnrSi iQ0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690320821; x=1690407221; bh=IG4HblRsaelc1 PZ+GaCUqZA1Rk6xPoqEYg9OUcCIhFQ=; b=SwgBEd7YmIXxPH3IKDbdwnoxRL8Mc lWQw7PO4hyOtG6VcuLsoGWBJLnSuoChWOc8qBLZYYUMXxA++pFyOfB7h1c0S7nKW j/SrDpsb7Jx8BJ84lO2DA439mBt5rI2Gybc72ceTD1MNJ0gT3FXXd1apU1j4fOHr Haeic40Ik97RMbVCZcdpSemIAfuHW49z+HeSFoXa6Z/BucDnL6/6/39Llllev+UT vSkwqPrbS7JHURcBSbjNmkhGosbcf76tD2Oof/lJas6kDFVMJ9/CxGAoNiph+xrB S2/H+Sy4YTX1dikDE+xOtu2I2JyaMSbe2SG8G1GoLN/MDICHl9wJyTxCQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedtgdduiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerreejnecuhfhrohhmpedfqfhllhhivgcutfgvrggufdcuoehphhhpseholhhlihgv rdgtohguvghsqeenucggtffrrghtthgvrhhnpeeltdetheejfeetjefhvdefjedtveegue ejveeuieevtdehffeufffhgedvueeftdenucffohhmrghinhepvgigthgvrhhnrghlshdr ihhopdhgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehphhhpseholhhlihgvrdgtohguvghs X-ME-Proxy: Feedback-ID: i835c46d5:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D5D1936A0075; Tue, 25 Jul 2023 17:33:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-ID: In-Reply-To: <91d45d72-5cc1-4fa4-bf50-cdf645a2e2af@app.fastmail.com> References: <19f70187-09d5-4f60-ba01-265f2e97f7cc@app.fastmail.com> <91d45d72-5cc1-4fa4-bf50-cdf645a2e2af@app.fastmail.com> Date: Tue, 25 Jul 2023 22:33:20 +0100 To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Content-Type: multipart/alternative; boundary=77817208f2434a48829fddb9e3e29839 Subject: Re: [PHP-DEV] New reflection methods for working with attributes From: php@ollie.codes ("Ollie Read") --77817208f2434a48829fddb9e3e29839 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable > I'm not opposed to these, but would this be a good time to also add an= interface for attributable reflection objects, so that we can type agai= nst that? These methods would all then go on that interface. I was going for a tiered approach. Once these methods were in, I would p= ropose adding an Attributable or ReflectorWithAttributes interface, as w= ell as a separate proposal to have ReflectionAttribute aware of the Attr= ibutable/ReflectionWithAttributes that it came from. > What's the difference between this and what was proposed in > https://externals.io/message/120799 ?=20 My proposal adds 3 methods, not just one, and was a followup to somethin= g from a while ago. > I don't get why this wouldn't require an RFC. It's adding missing methods that should realistically be there. It break= s nothing, nor does it introduce entirely brand new things. It's the sam= e as getParameter()/hasParameter() and hasPrototype() . I = couldn't tell you exactly why, just that the core contributors said so. > FY I started working on the implementation., hopefully it will bring = more arguments in favor of that RFC which I=E2=80=99m willing to submit = asap as well. Is it just the hasAttribute() method you're working on? I'm happy to hel= p out if you need/want it. I was moments away from opening a PR. --- Best Regards, *Ollie Read* --77817208f2434a48829fddb9e3e29839--