Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109882 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80818 invoked from network); 28 Apr 2020 17:12:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Apr 2020 17:12:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 843071804CA for ; Tue, 28 Apr 2020 08:45:48 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 28 Apr 2020 08:45:48 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id b17so11621032ybq.13 for ; Tue, 28 Apr 2020 08:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0rBMh8MWIUs0bq+jdIwL7UCXw1WTcPRT5Ujm6LuyRdY=; b=NcrpieNTz7GRuQW/+lffZMv5f83M2IfqEGnircC4g4egTH/bPS2iW1j8M8CShc0I3a e8BnR127CifzlfiVtQodjBuAD/2a5h0ye9YYMLNlSYEM72aqw0/gxTaLR1EocqljvWJW eIpQTlnVO6NXD6LCSNFI5YUbzHt0r9q7jYdzDnDYEIxTb8Su9L/+hE1TkBj6Ia8w9ZiF ED2PXcNXX+3bONGqDeiZbUTzOPtSKng3v62O9MWeu1DTKDDZtClNrvjUikSL8t1TUAs6 hge8efKshwyhnW6S/Um4asw3Z4CBDcBfzq6lwxhF+ZNkHr+eXS2v/RbyykMrv3d5JIl7 n/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0rBMh8MWIUs0bq+jdIwL7UCXw1WTcPRT5Ujm6LuyRdY=; b=XNUG69ywtN/MVqcLJ0QQZWD3MsWfUocI/jtfyNVrbHD1gTEoooCXUeSW9nyUk/8sVn uyT1/smnVUcY1XixJUwyFETaZUthxDATGi2tTqf4zhMB0O41+5dZ3iAwWNRxrslRaq3v xt14/JlOpRQQ1m8NQKUiCkl4t0SvQMuHeTDVWuGWQkj/ZxH420s/K++kNG6ZHsVzJlTw KVmUDa+5jm/JCwMIdcQ/yScLUxPyerhyL3n9f2UtUrwyc0lIxBEwuYT7eB2+ij0hwuiT jvyXYisdSCyRxP4Z9NNeSk/AxkG5/D8a1JEjJd525Fqolr7sc9mQiMsMQol58uIt82R6 gH5g== X-Gm-Message-State: AGi0PuYgyG7rLR/UG/AZQMQS1sc9GsBYcMAkfBav3AZNtc5LAkT4Qati v9OlRbd8Y2hOJvAP1zUIlOoTWkHpludhd0KMztIxB90P X-Google-Smtp-Source: APiQypI3aSnJV1N0SNBSQ+tEsFvx1IRUj871+Mn3G5Btwh0lABCI7nfMgRAZfJkUzW2jGZO9PyK7IUf6vK267l8ANfM= X-Received: by 2002:a25:b8c1:: with SMTP id g1mr45905097ybm.411.1588088747288; Tue, 28 Apr 2020 08:45:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 28 Apr 2020 17:45:35 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [RFC] Constructor Property Promotion From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Nicolas > I would expect attributes to apply only to the properties on my side. Parameter annotations could be interesting for dependency injection. Symfony currently has some DI magic through parameter names among other things. It might be nice to control these through annotations instead. This would be impossible or involve a lot of hackery and assumptions if the annotations aren't available on the parameters. Alternatively we might make this information available through reflection (like ReflectionParameter::getGeneratedProperty()) so you can look for the annotation there. I don't think this is a huge problem, just wanted to mention it. Ilija